I am trying to open a telnet window and send some keys to this active window. Below is the JavaScript code:
var oWshShell = new ActiveXObject("WScript.Shell");
oWshShell.Run("telnet 43.43.22.45 23");
//oWshShell.Run("firefox.exe http://www.google.com");
//oWshShell.Run(" notepad.exe");
oWshShell = null;
But I am unable to open them all the same. It says the file does not exist. However, the commented lines work perfectly, when uncommented. what could be the problem?
Thanks in advance.