Click to See Complete Forum and Search --> : relation with DOS windows and VB windows


January 28th, 2000, 07:44 AM
I want to launch a .bat file with my VB windows.
But after i launch it, i want to stand the end of the .bat file.
How can i stand the end of this file before continuous my programs.
thanks a lot

Lothar Haensler
January 28th, 2000, 07:47 AM
use CreateProcess API to start the batch file and WaitForSingleObject to wait for its end.