RE: WSCRIPT.SHELL(Run) in ASP
From: Dave Alvarado (anonymous_at_discussions.microsoft.com)
Date: 05/27/04
- Next message: GoGoGadgetScott: "Re: script out to text file"
- Previous message: Torgeir Bakken \(MVP\): "Re: Batch file for installs before wsh"
- In reply to: JKuzlotsky: "WSCRIPT.SHELL(Run) in ASP"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 27 May 2004 12:11:07 -0700
Another couple things to check:
-Is the script ending before the Run statement finishes? Normally I'll use the Exec method instead of Run, and check for the status of the returned object to not be zero, and sleep if it is. For example:
Set oShell = CreateObject("WScript.Shell")
Set oExec = oShell.Exec("SomeCommand.exe")
Do Until oExec.Status <> 0
WScript.Sleep 100
Loop
Set oExec = Nothing
Set oShell = Nothing
-Do you have a permissions problem that's causing the script not to run? Remember that in the ASP page, you'll typically be running as the IUSR account, but when you do a Start -> Run, you're running as yourself.
- Next message: GoGoGadgetScott: "Re: script out to text file"
- Previous message: Torgeir Bakken \(MVP\): "Re: Batch file for installs before wsh"
- In reply to: JKuzlotsky: "WSCRIPT.SHELL(Run) in ASP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|