@setlocal
@set TMPAPT=c:\FG\fgdata\airports\apt.dat.gz
@set TMPNAV=c:\FG\fgdata\navaids\nav.dat.gz

@if NOT EXIST %TMPAPT% goto NOAPT
@if NOT EXIST %TMPNAV% goto NONAV

call gen-phonebook -a %TMPAPT% -n %TMPNAV%

@goto END

:NOAPT
@echo ERROR: Can NOT locate %TMPAPT% file! FIX ME!
@goto END

:NONAV
@echo ERROR: Can NOT locate %TMPNAV% file! FIX ME!
@goto END

:END

