Mail Archives: djgpp/1997/07/02/06:16:48
On Tue, 1 Jul 1997, Robert Hoehne wrote:
> Alex wrote:
> >
> > Do you need to do system("command.com"); or something like that?
>
> system(NULL);
>
> does the job.
Please note that system("command.com") and system(NULL) [or system(""),
or system(0)] are NOT the same. The first invokes COMMAND.COM, while the
rest will call whatever shell is mentioned by the SHELL or COMSPEC
environment variable (in that order). It is all described in the library
reference, and in much more details, so please read the docs.
- Raw text -