标签:set goto windows 网卡 Admin 互切 interface netsh
开启有线网卡 关闭无线网卡
内网.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
搜索
复制
<iframe></iframe>标签:set,goto,windows,网卡,Admin,互切,interface,netsh 来源: https://www.cnblogs.com/ios9/p/16330112.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。