Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2002
    Posts
    20

    Unanswered: running application

    How do I open an application using javascript

    i've got this code, but doesn't work

    function open()
    {
    var ws = WScript.CreateObject("WScript.Shell");
    ws.run 'notepad.exe';
    }
    thanks

  2. #2
    Join Date
    Jan 2003
    Location
    de/ro
    Posts
    12

    Re: running application

    Originally posted by gleech
    How do I open an application using javascript

    i've got this code, but doesn't work

    function open()
    {
    var ws = WScript.CreateObject("WScript.Shell");
    ws.run 'notepad.exe';
    }
    thanks

    try to use this:

    <INPUT TYPE=BUTTON ID="wshLaunch" VALUE="start notepad">
    <script language="VBScript">
    Sub wshLaunch_OnClick()
    Dim objShell
    Set objShell = CreateObject("WScript.Shell")
    objShell.Run "C:\WINNT\notepad.exe"
    set objShell = nothing
    End Sub
    </script>

Posting Permissions

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