Hi,
I am trying to build an asp script which uses the WScript.shell of vbs. The script works perfect as a .vbs program, but when it is changed to .asp by adding the <% and %>, an error is given in the line:
set wshshell = WScript.CreateObject("WScript.Shell")
It says: Object required: ''
What do you think is the problem? Is there another way around this?
Thanks in advance
I have solved a part of the problem by changing the code to the following:
set wshshell = Server.CreateObject("WScript.Shell")
Now I am trying to run a vbs script using the following:
wshshell.run ("c:\MyFiles\IISscript.vbs")
The error has now changed to:
error '80070002'
any idea on how to solve this now?
Thanks in advance
I am trying to build an asp script which uses the WScript.shell of vbs. The script works perfect as a .vbs program, but when it is changed to .asp by adding the <% and %>, an error is given in the line:
set wshshell = WScript.CreateObject("WScript.Shell")
It says: Object required: ''
What do you think is the problem? Is there another way around this?
Thanks in advance
I have solved a part of the problem by changing the code to the following:
set wshshell = Server.CreateObject("WScript.Shell")
Now I am trying to run a vbs script using the following:
wshshell.run ("c:\MyFiles\IISscript.vbs")
The error has now changed to:
error '80070002'
any idea on how to solve this now?
Thanks in advance