This is a migrated thread and some comments may be shown as answers.
How to run an exe from a Web page using JavaScript
0 Answers 37 Views
This is a migrated thread and some comments may be shown as answers.
Suresh K
Top achievements
Rank 1
Suresh K asked on 05 May 2010, 12:10 PM

Hi.

I am using this code to run the Exe in asp.net using JavaScript.

                    var ODRef=245462;

                    var oShell = new ActiveXObject("Shell.Application");

                    var commandtoRun = "C:\\Program Files\\ Send Fax.exe";

                    var commandParms = ODRef;

                    // Invoke the execute method. 

                    oShell.ShellExecute(commandtoRun, commandParms,"", "open", "1");

                    return true;

Now I want to know the status of the exe. Because if the exe is already running I won’t like to open another exe, just I want to focus the running exe with new passing parameters.

Can any one help me how to do this task?

And I am able to doing this task only with I.E. not able to doing with other browsers like Firefox, Chrome.

Can any one help me how to over come this issue?

Thank You.

Suresh K.

No answers yet. Maybe you can help?

Asked by
Suresh K
Top achievements
Rank 1
Share this question
or