How to wait for a shell process to finish before executing further code in VB6

The secret sauce needed to do this is the WaitForSingleObject function, which blocks execution of your application’s process until the specified process completes (or times out). It’s part of the Windows API, easily called from a VB 6 application after adding the appropriate declaration to your code. That declaration would look something like this: Private … Read more