Mail Archives: djgpp/1994/08/26/13:44:42
> Yes, you have to start command.com, the _command interpreter_, to
> execute commands in a batch file:
>
> system("command.com /c mybat.bat arg1 arg2");
One can certainly argue about how system() should work, but other DOS
compilers don't seem to require this. For example, Borland and Microsoft let
you start a subshell by system(""). I just took a quick look at the BC 3.1
system() source code, and it appears to concatenate COMSPEC, /c and your
args, then call spawn.
- Raw text -