
September 24th, 2003, 03:32 PM
|
|
Contributing User
|
|
Join Date: Jul 2003
Posts: 57
Time spent in forums: < 1 sec
Reputation Power: 6
|
|
|
ASP - Launching Executables
Hi,
I have an Executable which I want to run from an ASP page on the server.
I have the following code in place:
strcommand = "C:\Users\SSR_BWUpload\runme.bat"
strcommand = "cmd.exe" & " /C " & Chr(34) & strcommand & Chr(34)
set ws = server.createobject("WScript.Shell")
ws.Run strcommand
The exectuable gets launched but does not complete as the control is passed back to the ASP page.
How do I wait for the Executable to finish before getting back to the user.
Thanks,
Ranjan.
__________________
Ranjan Kumar
|