Date: Sun, 23 Aug 1998 17:19:29 +0300 (IDT) From: Eli Zaretskii To: M Joshua Ryan cc: djgpp AT delorie DOT com Subject: Re: Can a DOS Console App close its own window? In-Reply-To: <35DBBE0C.9F45C70E@admiral.umsl.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Thu, 20 Aug 1998, M Joshua Ryan wrote: > I haven't tested this, but you could try > > system("exit"); You *should* have tested that, because it doesn't work. The code you suggest will have no effect, since the EXIT command at most causes the *inferior* shell to terminate, but it does nothing to the *parent* shell from which the calling program was invoked. In fact, DJGPP's version of `system' knows that EXIT has no effect, so it doesn't even invoke an inferior shell, it just returns immediately to the caller.