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

%TEMPT% -cf archive -V label -T nul
@if ERRORLEVEL 1 goto ERR3
%TEMPT% xfV archive label
@if ERRORLEVEL 1 goto ERR4
%TEMPT% xfV archive 'la?el'
@if ERRORLEVEL 1 goto ERR5
%TEMPT% xfV archive 'l*l'
@if ERRORLEVEL 1 goto ERR6
%TEMPT% xfV archive lab
@if NOT ERRORLEVEL 2 goto ERR7
%TEMPT% xfV archive bel
@if NOT ERRORLEVEL 2 goto ERR8
%TEMPT% xfV archive babel
@if NOT ERRORLEVEL 2 goto ERR9
@echo.
@echo Volume test was a 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 Failed to create archive ...
@goto WAIT

:ERR4
@echo Extract 1 failed ...
@goto WAIT

:ERR5
@echo Extract 2 failed ...
@goto WAIT

:ERR6
@echo Extract 3 failed ...
@goto WAIT

:ERR7
@echo Extract 4 failed to FAIL!
@goto WAIT

:ERR8
@echo Extract 5 failed to FAIL!
@goto WAIT

:ERR9
@echo Extract 6 failed to FAIL!
@goto WAIT

:WAIT
@pause
cd ..
@goto END


:END
@set PROMPT=%TEMPPR%
