Mail Archives: djgpp/1997/09/30/16:04:40
On 30 Sep 1997, Laine wrote:
>
> Hello!
>
> I want to run a dos bat-file from my own c-program that
> I've done using DJGPP. I found in the syntax help in
> Rhide the commands spawn* and execl, but I don't know
> wich of the 6 (I think it was six) different spawn-functions
> should I use, or wich of the exec-functions. And how do
> they work. I couldn't get it from the help in Rhide.
Just use the system() function it calls on your shell to execute the
command and will work with bat scripts:
char command[] = "myscript";
...
system( command );
...
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -