Check to see if batch file is still running
Posted on 2006-06-09
I am calling ShellExecute API of shell32.dll in order to execute a batch file with parameters. However, i am trying to halt my program until the batch file finishes running. I have tried several approaches to get the handle of the window in order to loop until the batch file terminates, but it seems like the cmd.exe window is not a normal window and i am unable to do so.
Does anyone know how to check to see if the window is still open?