Date: Tue, 8 Feb 2000 09:42:09 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: arcadepreserv AT hotmail DOT com cc: djgpp AT delorie DOT com Subject: Re: How Do I start another DOS program from DJGPP ? In-Reply-To: <87nb7r$5gb$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 7 Feb 2000 arcadepreserv AT hotmail DOT com wrote: > I am looking for a dosexex("myprog.exe"); > > type of command, it must be there but what is the syntax and include > needed ? Look up `system' and `spawn*' in the library docs. > And then I need the calling program to proceed while the called program > executes, how do I do this ? On plain DOS, you can't. On Windows, run the subsidiary program like this: system("start prog.exe"); > a last question, which is not really essential is how can I read the > output from the called program from the calling program ? Use `popen' and `pclose' from the library. (Note that this won't work with the above "start" trick.)