开启有线网卡 关闭无线网卡
内网.bat
@echo off
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:admin
chcp 65001
netsh interface set interface "WLAN" disabled
netsh interface set interface "以太网" enabled
:eof
关闭有线网卡 开启无线网卡
外网.bat
@echo off
%1 %2
ver|find "5.">nul&&goto :Admin
mshta vbscript:createobject("shell.application").shellexecute("%~s0","goto :Admin","","runas",1)(window.close)&goto :eof
:admin
chcp 65001
netsh interface set interface "以太网" disabled
netsh interface set interface "WLAN" enabled
:eof