@REM **********************************************************
@REM THESE MUST BE ADJUSTED TO SUIT YOUR PARTICULAR ENVIRONMENT
@REM **********************************************************

@REM Thes MUST be set to suit your environment, pointing to the
@REM tar executable that is to be TESTED ... I am testing my Release version
@set TEMPT=C:\Projects\tar\Win32\Release\tar.exe
@REM set TEMPT=C:\Projects\tar\Win32\Debug\tar.exe
@REM set TEMPT=C:\MDOS\tar112.exe
@if NOT EXIST %TEMPT% goto ERR1

@REM This is utility to fully DELETE a folder, and all its contents
@set TEMPX=DEL /S /Q
@REM This is a utiltiy to COMPARE two binary files ...
@set TEMPC=COMP

@REM This is a batch file that creates a new folder, and changes into it ...
@if NOT EXIST mdd.bat goto ERR4

@if NOT EXIST temp\nul goto DNTEMP
%TEMPX% temp > nul
@rd temp
@if NOT EXIST temp goto DNTEMP
@echo WARNING: FAILED TO DELETE 'temp' DIRECTORY!
@echo Tests may be able to continue, but not in a clean folder ...
@pause
:DNTEMP

@goto END

:ERR1
@echo Can NOT locate %TEMPT% ... check name, location! Correct setup.bat file ...
@pause
@goto END

:ERR2
@echo Can NOT locate %TEMPX% ... check name, location! Correct setup.bat file ...
@pause
@goto END

:ERR3
@echo Can NOT locate %TEMPC% ... check name, location! Correct setup.bat file ...
@pause
@goto END

:ERR4
@echo Can NOT locate mdd.bat ... check name, location! Correct setup.bat file ...
@pause
@goto END

:END
