Date: Wed, 2 Jul 1997 13:14:24 +0300 (IDT) From: Eli Zaretskii To: Robert Hoehne cc: djgpp AT delorie DOT com Subject: Re: DOS Shell? In-Reply-To: <33B8CEC0.512452BA@Mathematik.TU-Chemnitz.DE> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.