www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/02/06:16:48

Date: Wed, 2 Jul 1997 13:14:24 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE>
cc: djgpp AT delorie DOT com
Subject: Re: DOS Shell?
In-Reply-To: <33B8CEC0.512452BA@Mathematik.TU-Chemnitz.DE>
Message-ID: <Pine.SUN.3.91.970702131147.27897A-100000@is>
MIME-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019