Opening a Program using WshShell.Run in an asp page
I apologize for my ignorance but I would be interested in knowing why the
following script wouldn't be working on my system (this is an example of a
WSH script that would open up the user's notepad on nt). It works if I put
the script portion in a "testrun.vbs" file and then execute from the OS
explorer window, but it won't work from my IE 4.0 browser.
<HTML>
<HEAD>
<META name=VI60_defaultClientScript content=VBScript>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--
Sub window_onload
Dim WshShell
Set WshShell = CreateObject("WScript.shell")
WshShell.Run("C:\WINNT\notepad.exe")
End Sub
-->
</SCRIPT>
</HEAD>
<BODY>
</BODY>
</HTML>
Kavi C. Grace