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 阅读(...) 评论(...) 编辑 收藏