@call clrsetup
@set TEMPAT=%1
@if "%1x" == "x" goto HELP
@call atsetup
@call dosetup
@if NOT EXIST %TEMPXA% goto ERR1
@if NOT EXIST %TEMPAT%\. goto ERR4
@REM echo *** STILL TO BE COMPLETED ***
@echo Running: %TEMPXA% %TEMPACMD%
%TEMPXA% %TEMPACMD%
@goto END

:HELP
@echo.
@set TEMPAT=temp
@call atsetup
@echo HELP
@echo.
@echo Enter an OUTPUT directory used previously in runmap...
@echo.
@echo This should be where you created the Maps, with runmap.bat
@echo and the necessary map work data files has been copied there...
@echo Then [%TEMPXA%] will be run, with a command like...
@echo %TEMPACMD%
@goto END

:ERR1
@echo.
@echo ERROR: Can NOT locate executable %TEMPXA%! Check atsetup.bat, name, location...
@goto END

:ERR4
@echo.
@echo ERROR: Can NOT locate executable %TEMPAT%! Check atsetup.bat, name, location...
@goto END


:END
