Determine whether a external program (process) has finished execution successfully 
Author Message
 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.



Wed, 18 Oct 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Waiting until external program finished to continue processing

2. HELP: Detecting whether an External Program is running.

3. halting VB program execution until OS finishes

4. Pause program execution until other application finishes

5. HELP: Detecting whether an External Program is running.

6. Calling an external program (and waiting until it's finished)

7. waiting for external program to finish (modally)

8. Waiting for external programs to finish

9. VB5 program determining whether it's running in the IDE environment

10. ?: Want to determine whether program runs in design mode or not

11. How 2 determine DOS program has finished?

12. determine if program started with shell finished

 

 
Powered by phpBB® Forum Software