BAT操作WScript让路由器重启
作者:lcy 日期:2009-06-24
vbs
set sh=WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
sh.SendKeys "open 192.168.2.1"
WScript.Sleep 1000
sh.SendKeys "{ENTER}"
WScript.Sleep 1000
sh.SendKeys "root{ENTER}"
WScript.Sleep 1000
sh.SendKeys "mqucy9{ENTER}"
WScript.Sleep 1000
sh.SendKeys "reboot{ENTER}"
WScript.Sleep 5000
sh.run "TASKKILL /im telnet.exe",0
WScript.Sleep 1000
sh.Quit
bat
start telnet.exe
rem batch telnet
cscript //nologo tel.vbs
set sh=WScript.CreateObject("WScript.Shell")
WScript.Sleep 1000
sh.SendKeys "open 192.168.2.1"
WScript.Sleep 1000
sh.SendKeys "{ENTER}"
WScript.Sleep 1000
sh.SendKeys "root{ENTER}"
WScript.Sleep 1000
sh.SendKeys "mqucy9{ENTER}"
WScript.Sleep 1000
sh.SendKeys "reboot{ENTER}"
WScript.Sleep 5000
sh.run "TASKKILL /im telnet.exe",0
WScript.Sleep 1000
sh.Quit
bat
start telnet.exe
rem batch telnet
cscript //nologo tel.vbs
评论: 0 | 引用: 0 | 查看次数: -
发表评论