Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re: executing program

Status
Not open for further replies.

phumes1

Programmer
Nov 7, 2001
9
CA

See previous thread "Re: executing notepad.exe on client PC from url link on server"

I have tried the code suggested numerous times on 3 different Windows PC's and I can't get notepad to load??

Two PC's are Windows XP/IIS and the other NT4 Server/IIS

I tried running the script from the command line without any success.

NO ERRORS...what gives?

I need your expertise...I'm totally at a loss.

 

Here it is.

<html>
<head>
<title>Test</title>
</head>

<body>

<SCRIPT LANGUAGE=&quot;VBScript&quot;>
Sub Notepad()
Dim ws
Set ws = CreateObject(&quot;WScript.Shell&quot;)
ws.Run(&quot;c:\windows\notepad.exe&quot;)
End Sub
</SCRIPT>

<input type=&quot;button&quot; id=&quot;Notepad&quot; name=&quot;Notepad&quot; value=&quot;Notepad with VBScript&quot;>
</form>

</body>

</html>
 
<input type=&quot;button&quot; id=&quot;Notepad&quot; name=&quot;Notepad&quot; value=&quot;Notepad with VBScript&quot; onclick=&quot;Notepad&quot;> Jon Hawkins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top