I am trying to run the below code which launches notepad. IE tab is nice solution, but loading is slow. I gave the try to ff-activex-host.I downloaded the binary exe. I copied the npffax.dll to firefox plugin folder(C:\Program Files\Mozilla Firefox\plugins) . But, still
the above code is not working. I am getting the message “ActiveXObject is not defined” in web console. Can anybody shed a light on this issue?. Please clear me of running this code. This is the code I am trying.
var commandtoRun ="C:\\WINDOWS\\notepad.exe";
var oShell = new ActiveXObject("WScript.Shell");
oShell.run(commandtoRun);
EDIT:
Any suggestion to run the above code in firefox is welcomed.
Here is sample code from MDN:
Keep in mind, this is not cross-browser and will not work on Linux. If this is critical for you, – use
nsIProcessinterface, https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIProcess