March 18th, 2004, 06:17 PM
Calling wsh module fron web page
I try calling/running a vbs script from a web page on a
Win2K workstation with the following code:
<input type="BUTTON" name="Exec1" value="Run me" language="vbs" onclick="version">
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "c:\WSH Script\WSHversion.vbs"
Set WshShell = Nothing
The system cannot find the file specified.
I can put the identical code in a .vbs file and it seems
to work properly, but only if the .vbs to be run (WSHversion.
vbs in this case) is in the same directory as the calling
Is it impossible to run a separate vbs script from within
a web browser? I have seen several examples where
separate Windows programs (CMD, notepad, .bat files)
are run within browser script using essentially the same
code as above.
I have already checked my path variable which contains
a C:\ reference. I cannot think of what else might be
Would I essentially have to put the actual code of the
script I want run in the web page instead of trying to