By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,034 Members | 1,225 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,034 IT Pros & Developers. It's quick & easy.

run .exe file from my web page

P: 5
Hi, I have application.exe in http://folder/application.exe

I used the following java script and html code to insert into my webpage:
Expand|Select|Wrap|Line Numbers
  1. <SCRIPT Language="JScript">
  2. function runcmd() {
  3. File="http://myfolder/application.exe";
  4. WSH=new ActiveXObject("WScript.Shell");
  6. }
  7. </SCRIPT>
  9. <body onLoad="javascript:runcmd();">
But it is not working can you tell what is the problem,
and how to achieve this? to run .exe file automatically.
Thanks in advance
May 8 '13 #1
Share this Question
Share on Google+
3 Replies

Expert Mod 5K+
P: 8,639
do you have set the scripting permissions accordingly in IE (afaik, you need quite a low security level to execute WScript commands in IE).
May 8 '13 #2

P: 5
i don know how to set scripting permissions, just i add the above coding
May 8 '13 #3

Expert Mod 5K+
P: 8,639
permissions you have to set in the IE preferences.
May 8 '13 #4

Post your reply

Sign in to post your reply or Sign up for a free account.