ウィンドウの中断/ネットワーク操作のためのコマンドプロンプト
cmd
ネットワークの表示と切断/ネットワーク化を実現します。
- 管理者としてコマンドプロンプトを開きます
- コンピュータのネットワークインターフェース名を表示する
netsh interface show interface
- 切断操作
# netsh interface set interface "你想断开的接口名称" admin=disable
netsh interface set interface "以太网" admin=disable
- ネットワーク操作
上記のコマンドを にadmin=disable
置き換えますadmin=enable
。
# netsh interface set interface "你想连接的接口名称" admin=disable
netsh interface set interface "以太网" admin=enable
TODO: 将来的には、スケジュール実行用のスクリプト化され、スケジュールされたネットワーク接続や切断が実現される予定です。
参照
@misc{BibEntry2023Jun,
title = {
{cmd コマンドを使用してネットワーク xn–nh7c を切断する方法}}、
year = {2023}、
month = jun、
urldate = {2023-06-18}、
language = {中国語} 、
メモ = {[オンライン; 2023 年 6 月 18 日にアクセス]}、
url = {https://www.zhihu.com/question/576771071}
}