@setlocal
@set TMPURL=http://clemaez.fr/flightgear/gen_phonebook.pl.txt

@set TMPFIL=gen_phonebook.pl

@if EXIST %TMPFIL% goto NOWAY

wget %TMPURL% -O %TMPFIL%

@if NOT EXIST %TMPFIL% goto FAILED

@goto END

:FAILED
@echo Faile dot fetch file with 'wget %TMPURL% -O %TMPFIL%'! FIX ME!
@goto END


:NOWAY
@call dirmin %TMPFIl%
@echo Output file ALREADY EXISTS!
@echo delete, rename or move first...
@goto END

:END
