Message-ID: <001101c2057f$e21a8710$0102a8c0@acceleron> From: "Andrew Cottrell" To: "Eli Zaretskii" Cc: References: Subject: Re: emacs under w2k Date: Mon, 27 May 2002 23:09:57 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Reply-To: djgpp-workers AT delorie DOT com > > > > The testing shows that the command interpreter cmd.exe works fine, but > > the > > > > other command interpreter command.com does not work correctly. > > > > > > I'm not sure: all I need is that if the file dj204\djgpp.env exists that > > > both cmd.exe and command.com will invoke "@echo here". Can you confirm > > > that this is the case? > > I tried again and command.com fails even with the quotes so it looks like > > cmd.exe (or bash?) should be used. > > Sorry, I'm not following: which case of the two I mentioned fails? And > how exactly does it fail? The following two tests fail, they do not echo anything:- command.com /c if exist \DJ204\djgpp.env @echo here1 command.com /c if exist "\DJ204\djgpp.env" @echo here2 The following two tests pass, they echo here3 and here4. Please note that I am using cmd.exe as the shell when runnig the tests :- if exist \dj204\djgpp.env @echo here3 if exist "\dj204\djgpp.env" @echo here4 The output from the batch file is:- D:\DJ204>command.com /c if exist \DJ204\djgpp.env @echo here1 Bad command or file name D:\DJ204>command.com /c if exist "\DJ204\djgpp.env" @echo here2 D:\DJ204>if exist \dj204\djgpp.env here3 D:\DJ204>if exist "\dj204\djgpp.env" here4 D:\DJ204>