![]() |
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 ); .. |