ウィンドウの中断/ネットワーク操作のためのコマンドプロンプト

ウィンドウの中断/ネットワーク操作のためのコマンドプロンプト

cmdネットワークの表示と切断/ネットワーク化を実現します。

  1. 管理者としてコマンドプロンプトを開きます
  2. コンピュータのネットワークインターフェース名を表示する
netsh interface show interface

ここに画像の説明を挿入します

  1. 切断操作
# netsh interface set interface "你想断开的接口名称" admin=disable
netsh interface set interface "以太网" admin=disable
  1. ネットワーク操作
    上記のコマンドを に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}
}

おすすめ

転載: blog.csdn.net/orDream/article/details/131268974