running .exe program from javascript in IE8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • su817200
    New Member
    • Apr 2010
    • 13

    #1

    running .exe program from javascript in IE8

    Dear Friend,
    I am trying to run a .exe program using javascript from IE8
    It is not not working. I thing there are some settings in Internet Explorer 8 to allow execution of .exe. Please let me know. Also one more thing there are some ActiveX scripts, how to allow IE8 to run ActiveX without prompting.
    Rgds,
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    you might get that to work only on a local machine - for plain security reasons ... you cannot set security relevant settings on other machine's browsers without permission of the user ... so the prompt will hopefully always occur for such things. so are you trying that for a local machine?

    Comment

    • su817200
      New Member
      • Apr 2010
      • 13

      #3
      yes I am trying that for a local machine?How to get .exe files running from IE8. Please let me know.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        in this case you might try something like this:

        Code:
        var WshShell = new ActiveXObject('WScript.Shell');
        WshShell.Exec('foo.exe');
        you might have an additional look here for the docs of the WSH ...

        Comment

        Working...