I'm trying to use JavaScript to invoke the SocketScan exe from the web page. Below is the code:
Code:
function startScan()
{
//Set WshShell = WScript.CreateObject("WScript.Shell");
var WshShell = new ActiveXObject("WScript.shell");
WshShell.run("\Program Files\Socket\SocketScan Software\ScktScan.exe");
}
I have also tried:
Code:
function startScan()
{
Set WshShell = WScript.CreateObject("WScript.Shell");
//var WshShell = new ActiveXObject("WScript.shell");
WshShell.run("\Program Files\Socket\SocketScan Software\ScktScan.exe");
}
But I get the Error: Automation Server can't create object.
Source: (null)
Firstly, is it because ActiveX objects cannot be invoked in PIE? Otherwise, am I giving the path to the exe wrong? The Program Files path is directly under My Device. Should I add "My Device" in front of the path?
Any guidance is greatly appreciated.
TIA.