CreateProcess and its status

This is a discussion on CreateProcess and its status within the Windows Programming forums, part of the Platform Specific Boards category; Is there a way to run a process using CreateProcess and then have the program that called it just kinda ...

CreateProcess and its status

Is there a way to run a process using CreateProcess and then have the program that called it just kinda hang out until the process is finished? I am needing to use it in a windows program that calls a dos based program tat just does some file i/o and doesnt show anything and then ends, but i wanted to do it without the annoying dos box. i tried just letting create process go and then continue the program but the rest of the program finishes too fast. I have also tried using ShellExecute to run it but again i get the same problem. it will run with the system command but that pops up the annoying dos window.