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?