Mail Archives: djgpp/2000/02/08/05:46:33
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.)
- Raw text -