I try to execute .exe file using nsIProcess. But it is not working and not giving any error message. I am working on firefox 10 and windows 7. Can anybody suggest me any solution? Thanks
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIProcess);
file.initWithPath("C:\\Users\MJ\\Desktop\\Example.FaceDetection.exe");
file.launch();
You forgot one backslash before
MJ:So your application doesn’t execute because it isn’t being found. That said, the better way to run applications is usually nsIProcess – it allows you to specify command line parameters and it will also provide useful feedback: