
Determine whether a external program (process) has finished execution successfully
Use the API call GetModuleHandle. You will need to declare the
GetModuleHandle API call in the usual way, you use it like this -
Shell "PROGRAM.EXE"
While GetModuleHandle("PROGRAM.EXE") <> 0
DoEvents
Wend
Quote:
>Recently I faced with a problem in trying to determine whether an external
>program that was launched using the Shell Command had finished executing.