Quote:
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****n '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****n "C:\WINNT\notepad.exe"
set objShell = nothing
End Sub
</script>