Angus Leeming <[EMAIL PROTECTED]> writes:

> 
> Asger Ottar Alstrup wrote:
> > Well, if you use the if-trick, then this single bat-file should work for
> > you as well:
> > 
> > --
> >  <at> echo off
> > 
> > if "%LANG%"=="" SET LANG=fr_FR
> > 
> > if "%~1" == "~1" goto win95
> > 
> > "C:\program files\lyx\bin\lyx.exe" %~*
> > 
> > goto end
> > 
> > :win95
> > "C:\program files\lyx\bin\lyx.exe" %1 %2 %3 %4 %5 %6 %7 %8 %9
> > 
> > end:
> 
> Asger, you're fab!
> 
> However, don't they have 
> 
>    if foo
>    else
>    endif
> 
> or equivalent in bad, mad bat land?
> 

This works on Win2000 and later:

$ cat iftest.bat
@echo off
if exist %1 (
   echo %1 is here
) else (
   echo %1 missing
)


--
Enrico


Reply via email to