@if NOT EXIST setup.bat goto ERR1
call setup
call mdd temp
@if NOT EXIST ..\delete02.bat goto ERR2

genfile -l 3073 -p zeros --file 1
copy 1 2 > nul
copy 2 3 > nul
%TEMPT% -cf archive 1 2 3
%TEMPT% -tf archive

@REM This pipe not presently working
@REM copy archive | %TEMPT% f - --delete 2 > archive2
copy archive archive2 > nul
%TEMPT% f archive2 --delete 2
@echo separator
%TEMPT% -tf archive2
@echo Should only have files 1 and 3 ...
@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

:END
