It will wait for the exe to complete - It will even wait on processes that
the exe waits on. For example. running a batch file will cause the script
to wait on the entire batch file to complete.
FROM SCRIPT DOC:
bWaitOnReturn
Optional. Boolean value indicating whether the script should wait for the
program to finish executing before continuing to the next statement in your
script. If set to true, script execution halts until the program finishes,
and Run returns any error code returned by the program. If set to false (the
default), the Run method returns immediately after starting the program,
automatically returning 0 (not to be interpreted as an error code).
The WaitOnReturn argument works as expected for VB6 EXEs. Note that VB6
EXEs have no native abilty to return process exit codes, so the return value
from the Run method has no meaning for a VB EXE.
--
Michael Harris
Microsoft MVP Scripting
http://maps.google.com/maps?q=Sammamish%20WA%20US
VB6 is a bad choice for EXEs meant for unattended automation since it does
not support creating true console applications. A VB6 COM component is
better. If you must use VB6 EXEs, write formless apps (startup is Sub
Main(), not a form). If you do, then make 100% sure the app never leaks
unhandled runtime errors or you'll get a VB runtime error dialog which you
may not even be able to see, depending on the environment in which the app
is executed.
VB.Net or C# or JScript.Net is a far better language choice since all
support true console apps.