草庐IT

oWshShell

全部标签

javascript - Telnet 在 JavaScript 中使用小程序

我正在尝试打开一个telnet窗口并将一些key发送到这个事件窗口。以下是JavaScript代码:varoWshShell=newActiveXObject("WScript.Shell");oWshShell.Run("telnet43.43.22.4523");//oWshShell.Run("firefox.exehttp://www.google.com");//oWshShell.Run("notepad.exe");oWshShell=null;但我仍然无法打开它们。它说该文件不存在。但是,注释行在未注释时工作得很好。可能是什么问题呢?提前致谢。