According to SS64, for .Run
you can specify bWaitOnReturn
to choose whether or not to wait for the process to terminate before your script continues.
SS64's details about .Exec
do not mention whether or not the script will wait for the specified process to terminate before the script continues when .Exec
is used.
The information for .ShellExecute
also does not specify this important detail.
Do .Exec
and/or .ShellExecute
wait for the specified process to terminate before the script continues?