cndavy


@echo off
netsh interface show interface name="无线网络连接3"|findstr "已连接"

IF ERRORLEVEL 1 goto 1
IF ERRORLEVEL 0 goto 0
:0
netsh interface set interface name="无线网络连接3" admin=DISABLED
netsh interface set interface name="本地连接 3" admin=ENABLED
goto end
:1

netsh interface set interface name="无线网络连接3" admin=ENABLED
netsh interface set interface name="本地连接 3" admin=DISABLED


:end

 

posted on 2017-10-12 08:25  cndavy  阅读(469)  评论(0编辑  收藏  举报

分类:

技术点:

相关文章:

  • 2021-10-21
  • 2022-01-13
  • 2021-10-15
  • 2022-02-15
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-12-24
  • 2021-12-24
  • 2021-12-23
  • 2021-12-24
  • 2021-11-16
  • 2021-08-07
  • 2021-12-24
相关资源
相似解决方案