Date: Fri, 28 Oct 94 11:04:52 EDT From: peprbv AT cfa0 DOT harvard DOT edu (Bob Babcock) To: itz AT crl DOT com Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: system() ? Reply-To: babcock AT cfa DOT harvard DOT edu > 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.