I have a small VB6 app in which I use the Shell command to execute a program. I am storing the output of the program in a file. I am then reading this file and
Shell
I've found a better & simpler solution:
Dim processID = Shell("C:/path/to/process.exe " + args Dim p As Process = Process.GetProcessById(processID) p.WaitForExit()
and then you just continue with your code. Hope it helps ;-)