🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #17

Help with WinExec !

#17
From: Clarence Din
Date: Tue, 21 Jul 1992 17:25
25 lines
1331 bytes
In my C program, I have some code as follows:

...
...
commands
...

WinExec ("whatever", SW_HIDE);

more commands

"whatever" is a DOS program of which I had set up a PIF file (set to
Exclusive Execution).  "whatever" is a program which does some file
manipulation and may take some long amount of time to finish.
The problem is I want "whatever" to completely finish what it's doing
before Windows runs "more commands" which follow the WinExec (above).
How do I do this?

Is there something in the Advanced options I'm supposed to fiddle with?
---------------------------------------------------------------------------
Clarence K. Din
Programmer/Analyst II, Language Analysis Center, University of Pennsylvania
din@grad1.cis.upenn.edu
---------------------------------------------------------------------------
"I have my toys (D-50, SR-16, TG-16 CD-ROM, SNES) and you don't!  Nyah!!!"
Technical Details
Message-ID: <83994@netnews.upenn.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!netnews.upenn.edu!grad1.cis.upenn.edu

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!jvnc.net!netnews.upenn.edu!grad1.cis.upenn.edu
From: din@grad1.cis.upenn.edu (Clarence Din)
Newsgroups: comp.windows.ms.programmer
Subject: Help with WinExec !
Message-ID: <83994@netnews.upenn.edu>
Date: 21 Jul 92 17:25:09 GMT
Sender: news@netnews.upenn.edu
Organization: University of Pennsylvania
Lines: 25
Nntp-Posting-Host: grad1.cis.upenn.edu