@toicontienApr 10.2008 — #No, you cannot run an executable file automatically in Firefox. Real web browsers (excluding Internet Explorer) do not allow arbitrary executable files to run due to security issues, as mentioned before. I wonder if you could program a small Java applet that loads the EXE file instead? Maybe what you want to accomplish would be best implemented in Java?
@MaheadamsAug 02.2011 — #No, you cannot run an executable file automatically in Firefox. Real web browsers (excluding Internet Explorer) do not allow arbitrary executable files to run due to security issues, as mentioned before. I wonder if you could program a small Java applet that loads the EXE file instead? Maybe what you want to accomplish would be best implemented in Java?[/QUOTE]
No, We can able to launch exe file in mozilla also., before that we need to configure security.?
@rnd_meAug 02.2011 — #i don't know what everyone is tralking about when they say you can't.
you cannot execute a specific exe by name, but you can "run" it from javascript in that you can start the exe. the limit is that arguments are a little janky, and you don't get a exit status code without further complication.
simply associate the exe with a made-up mime type, and open that mimetype to spawn the exe on-demand.
for example. run this in the firebug console: [CODE]window.open("data:x-application/myapp;,12345");[/CODE] you then browse to the exe you want to run, and remember to "do this automatically from now on"...
now, every time you run the snip, the exe you selected will execute.
if you want to talk back to js, you need to write to a file using jsonp format and inject a script tag pointing to the local path in your document. i know this works in firefox, not usre about other browsers.
firefox will also take the data you pass in the window.open() call and store it in a temp file. the path of that temp file is passed as the sole argument to your exe. keep that in mind if your exe behaves unexpectedly. for example, if i choose notepad in the save/open dialog resulting from the above code, it will show "12345" in notepad when it opens because i called notepad with an argument of the temp file path. note the actual filename is random and unpredictable...