VBS实现路由绑定
@echo off arp -d&arp -s 你的网关 网关的MAC exit @echo off if exist ipconfig.txt del ipconfig.txt ipconfig /all >ipconfig.txt if exist phyaddr.txt del phyaddr.txt find "Physical Address" ipconfig.txt >phyaddr.txt for /f "skip=2 tokens=12" %%M in (phyaddr.txt) do set Mac=%%M if exist IPAddr.txt del IPaddr.txt find "IP Address" ipconfig.txt >IPAddr.txt for /f "skip=2 tokens=15" %%I in (IPAddr.txt) do set IP=%%I arp -s %IP% %Mac% del ipaddr.txt del ipconfig.txt del phyaddr.txt exit 去黑框的VBS(如跟批处理同目录,则只需修改批处理的名称) Dim Wsh Set Wsh = WScript.CreateObject("WScript.Shell") WScript.Sleep(0000) Wsh.Run "批处理的名称.bat",0,True Set Wsh=NoThing WScript.quit @echo off net time \\server\ /set /y& C:\ip\DF6.00.020.1523.exe /install /pw=5757124 /reboot /freeze=c:,e, http://hi.baidu.com/xhwmd/blog/item/85affe01857c1f02728da578.html 本文出自 51CTO.COM技术博客 |


yunqongyao
博客统计信息
热门文章
最新评论
友情链接