I have a bat file which needs to be called from javascript in firefox extension ..
I have bat file present in content/chrome directory.. I tried to call bat file like this ..
var exe =
Components.classes['@mozilla.org/file/local;1']
.createInstance(Components.interfaces.nsILocalFile);
exe.initWithPath("chrome://sample/content/test.bat");
exe.launch();
But it's not working ..