自动telnet到目的主机执行指令,替换其中[ ]括符中间的内容为实际内容就可以使用了。 #you should delete Three lines with "#' leading,and run following statement#cscript telnet.vbs(this file name)#Base on Windows platform.set sh=WScript.CreateObject("WScript.Shell")WScript.Sleep 1000sh.SendKeys "telnet [hostip] -l [user]"WScript.Sleep 1000sh.SendKeys "{ENTER}"WScript.Sleep 1000sh.SendKeys "[password]{ENTER}"WScript.Sleep 1000sh.SendKeys "[command]{ENTER}"