steveo@dbrmelb.dbrhi.oz (Stephen Oakes) (02/07/91)
I am writing a Windows program which runs a DOS program. After running this second program, I need to prompt the user for more input before continuing. Basically, the DOS prog uncompresses files from a floppy to the hard disc. I use WinExec to run the DOS prog, and I have a PIF file for it. The problem is this: I do not want my main prog to continue until the DOS prog is finished, but when running in 386enhanced mode, it wants to continue concurrently. Even if I check the Exclusive box in the PIF file, this happens. Is there any way to check when the DOS prog terminates, or if it is still running?? Is there a better way to do this? Many thanks, Stephen Oakes o - \_/ P.S. How do I check for the existance or otherwise of a directory??