Please send procedure for this.
Thanks in Advance,
Fortunately it is not allowed or you'd have viruses running straight onto your computer every time you visited the web.
Our application is for internal purpose.
In case of IE, I am able to run exe file using ActiveXObject
But, In firefox, I am not able to run using ActiveXObject
Is there any other way to run exe file in firefox.
Thanks in Adnace
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?
Or simply tell the users to save the exe then click on the "run" link in the Firefox download window.
Launch exe in Mozilla
No, We can able to launch exe file in mozilla also., before that we need to configure security.:)
Originally Posted by toicontien
i don't know what everyone is tralking about when they say you can't.
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:
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...
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
Put the .exe in a .bat file and point the link to that batch file. Works great in every browser that I know of.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)