I know that this is frowned upon, but how can I run a batch file through javascript? I have tried three things:
1)
var oShell = new ActiveXObject("Shell.Application");
oShell.ShellExecute("test.bat", "","", "open", "1");
2)
document.location.href='test.bat';
3)
WshShell = new ActiveXObject("WScript.Shell");
WshShell.Run("test.bat");
Still no luck.
Thanks.