www.webdeveloper.com
Results 1 to 1 of 1

Thread: [ActiveX] Execute calculator

  1. #1
    Join Date
    Apr 2007
    Location
    Italy
    Posts
    104

    [ActiveX] Execute calculator

    Hi to All,

    I have this problem: I work on intranet and I have the necessity to execute an exe as this:

    I have a page called j_page.asp

    <html>
    <head>
    <Script Language="JavaScript" type="text/javascript">
    function runex() {
    var shell = new ActiveXObject("WScript.Shell");
    shell.run("c:/windows/system32/calc.exe",1);
    }
    </script>
    </head>

    <body>
    <form method="POST" name="FrontPage_Form2">
    ...
    <button onclick="runex()" style="width:66px;">Exe</button>
    ....
    <input type="submit" value="send" name="Send"></p></td>
    </form>
    </body>
    </html>


    When I push the button Exe it happens nothing, why ??
    I hav tried in many ways but I don' t understand the reason ...

    Thanks in advance for the help !!!
    Last edited by Kor; 04-28-2011 at 08:48 AM. Reason: setting an ActiveX prefix

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles