Mail Archives: djgpp-workers/2002/05/27/10:06:07
> > > > 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>
- Raw text -