Article View: comp.windows.ms.programmer
Article #1232How do I tell if a DOS prog is running / completed ??
From: Stephen Oakes
Date: Wed, 06 Feb 1991 22:32
Date: Wed, 06 Feb 1991 22:32
23 lines
1284 bytes
1284 bytes
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??
Technical Details
Message-ID:
<897@dbrmelb.dbrhi.oz>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!mel.dit.csiro.au!pleiades!dbrmelb!steveoShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!mel.dit.csiro.au!pleiades!dbrmelb!steveo From: steveo@dbrmelb.dbrhi.oz (Stephen Oakes) Newsgroups: comp.windows.ms.programmer Subject: How do I tell if a DOS prog is running / completed ?? Summary: from a Windows prog. Message-ID: <897@dbrmelb.dbrhi.oz> Date: 6 Feb 91 22:32:10 GMT Organization: CSIRO, Div. Building Constr. and Eng'ing, Melb., Australia Lines: 23