run .exe file from my web page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RamyaMuru
    New Member
    • Apr 2013
    • 5

    run .exe file from my web page

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

    I used the following java script and html code to insert into my webpage:
    Code:
    <SCRIPT Language="JScript">
    function runcmd() {
    File="http://myfolder/application.exe";
    WSH=new ActiveXObject("WScript.Shell");
    WSH.run(File);
    }
    </SCRIPT>
    
    <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
    Last edited by Dormilich; May 8 '13, 11:49 AM. Reason: Please use [CODE] [/CODE] tags when posting code.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    do you have set the scripting permissions accordingly in IE (afaik, you need quite a low security level to execute WScript commands in IE).

    Comment

    • RamyaMuru
      New Member
      • Apr 2013
      • 5

      #3
      i don know how to set scripting permissions, just i add the above coding

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        permissions you have to set in the IE preferences.

        Comment

        Working...