Click to See Complete Forum and Search --> : How to halt execution of VB code while a particular routine is executing?


Shalini Shikha
October 7th, 1999, 08:07 PM
In my program, I shell out to DOS to execute a particular batch file using:

hinstance% = Shell("DYNAMIC.BAT", 1)

I want to halt the further execution of the VB code until a particular routine is finished. How can I do this?

Lothar Haensler
October 8th, 1999, 05:57 AM
you should start the app using CreateProcess API.
To wait until the started app ends, use the WaitForSingleObject API.