@set TEMPPR=%PROMPT%
@if NOT EXIST setup.bat goto ERR1
call setup
call mdd temp
@if NOT EXIST ..\verbose.bat goto ERR2
@set PROMPT=# 

genfile --file file --length 10240
@if NOT EXIST file goto ERR3
@echo.
@echo Creating the archive - using standard out ...
%TEMPT% cvf - file > archive
@echo.
@echo Testing the archive
%TEMPT% tf archive
@if ERRORLEVEL 1 goto ERR5
@echo Output should be
@echo file
@echo.
@echo Success ... ok
@cd ..
@goto END

:ERR1
@echo Can NOT locate setup.bat ... check name, location ...
@goto END

:ERR2
@echo mdd.bat missing, or failed ... check name, location ...
@goto END

:ERR3
@echo ERROR: genfile did NOT create file ... maybe genfile not in path ...
@goto WAIT

:ERR5
@echo ERROR: Listing of archive failed ...
@goto WAIT

:WAIT
cd ..
@set PROMPT=%TEMPPR%
@pause
@goto END

:END
@set PROMPT=%TEMPPR%
