Mail Archives: djgpp/1994/10/28/17:33:06
> What exactly does system() do ? Is there a way to make it spawn something
> other than COMMAND.COM, for instance, by setting COMSPEC in the
> environment?
If the argument to system() is an exe or com file with no redirection, go32
spawns it directly, otherwise it calls the Turbo C system() function.
(Details of this logic were changed not too long ago; this is what 1.12
does.) Turbo C's system() uses COMSPEC, so it should work with alternate
command processors. The code which handles the interrupt is in
go32src/exphdlr.c. Search for "system" and the 2nd hit should be what you
want.
- Raw text -