WScript.Shell
Dear sir,
I tried everything I knew already, however, I just can not get WScript.Shell
to run on a windows 2003 server.
The page didn't return any error,but if I change objShell.run(ExeName) to
objShell.Run ExeName, 1, True. True means that the asp will wait for the
outcome that vbs script, then the whole IIS server will halt.
Below is my code, can some one point out what I did wrong here? Or is there
a bug of windows 2003 server?
on error resume next
dim sNow
dim eNow
sNow = now()
dim ExeName
ExeName = "e:\vbs\test.vbs"
Set objShell = Server.CreateObject("WScript.Shell")
objShell.Run(ExeName)
Set objShell = Nothing
eNow = now()
Response.Write("start at"&sNow&"<br>")
Response.Write(eNow)
response.Write(err.description)
--
Met vriendelijke groet,
Guoqi Zheng
Tel: +31 (0) 23 5343545
http://www.meetholland.com
|