Hi
(New and still trying learn vb scripting)
I have created a vb which runs a command that I need to automate, this works
fine.
But I now need to run the same command with different options after it has
completed (Its just the way the command runs, its like a db query), when I do
this the command starts to run in parallel and which causes errors, as the
command is trying to access the programs services at the same time.
I have tried to put the Wscript.sleep, thinking this would wait, but this
does not work,any sugesstions?
'***********************
dim Wshell
dim StrCmdNormal
dim StrCmdWarning
StrCmdNormal="c:\test.exe -o -t"
StrCmdWarning="c:\test.exe -o -z "
set Wshell = wscript.createobject("wscript.shell")
Wshell.run StrCmdNormal
Wscript.sleep 60
Wshell.run StrCmdWarning
Wscript.sleep 60
Wscript.echo StrCmdNormal
Wscript.echo StrCmdWarning
'**************************
---
Dee