日期:2014-05-17 浏览次数:20722 次
var wsh = WScript.CreateObject("WScript.Shell");
wsh.Run("cmd");
WScript.Sleep(1000);
wsh.AppActivate("cmd");
WScript.Sleep(1000);
wsh.SendKeys("telnet ip{ENTER}");
WScript.Sleep(1000);
wsh.SendKeys("y{ENTER}");
WScript.Sleep(1000);
wsh.SendKeys("username{ENTER}");
WScript.Sleep(1000);
wsh.SendKeys("password{ENTER}");
WScript.Sleep(1000);
wsh.SendKeys("c:\check.bat{ENTER}");