
Waiting until external program finished to continue processing
If I call another program using the ShellExecute API, how can I make my
program wait until the called program has finished to continue.
The example being run a Scandisk, wait till it's finished then Defrag, wait
till it's finished and then Shutdown the computer.
Any help gratefully recieved