
How to run a exe file in IE
Create a WScript.Shell object and use its Run method.
But...(there's always a but ;-) WScript.Shell is "unsafe" for use in IE.
Whether you use JScript's new ActiveXObject() or VBScript's CreateObject() or whether you get the prompt or the failure, the issues are still the same...
Q195826 - PRB: CreateObject Fails from Client-Side Scripts
http://support.microsoft.com/support/kb/articles/Q195/8/26.ASP
Or you can simply use HTAs instead - as simple as saving the file with .hta instead of .htm as the extension. .hta files are hosted by mshta.exe rather than iexplore.exe, and have a security model comparable to a conventional Windows desktop application. Of course accepting and executing an HTA is also up to the end user...
--
Michael Harris
Microsoft.MVP.Scripting
Seattle WA US
--
Quote:
> Dear All,
> Does Anyone know how to write a jscript code to run a application exe file
> of Client end when user click a button in IE browser?
> Any help is very appreciated!
> Thanks