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?
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?
you should start the app using CreateProcess API.
To wait until the started app ends, use the WaitForSingleObject API.