@setlocal
@set TMPAPT=D:\FG\xplane\1000\gz\apt.dat.gz
@set TMPNAV=D:\FG\xplane\1000\gz\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

