- Apr 15, 2005
- 367
- 0
- 0
Hi guys,
I am using a little bit of code to launch a command and then via a loop wait for it to complete:
------------------------Code Start-----------------------
Dim oWsc, oExec
Set oWsc = CreateObject("WScript.Shell")
Set oExec = oWsc.Exec(""".\AeXAgentUtil.exe"" /Clean")
' wait until finished
Do While oExec.Status <> 1
WScript.Sleep 100
Loop
wscript.echo "Done"
------------------------Code End-----------------------
I understand that via a run command you can add ', 0, True' to the end but this does not appear to be possible when launching it as above.
Is there away using the above code but to hide the DOS window? If not what code could replace this and wait for the command to complete be for continuing?
Thanks J
I am using a little bit of code to launch a command and then via a loop wait for it to complete:
------------------------Code Start-----------------------
Dim oWsc, oExec
Set oWsc = CreateObject("WScript.Shell")
Set oExec = oWsc.Exec(""".\AeXAgentUtil.exe"" /Clean")
' wait until finished
Do While oExec.Status <> 1
WScript.Sleep 100
Loop
wscript.echo "Done"
------------------------Code End-----------------------
I understand that via a run command you can add ', 0, True' to the end but this does not appear to be possible when launching it as above.
Is there away using the above code but to hide the DOS window? If not what code could replace this and wait for the command to complete be for continuing?
Thanks J