@set TEMPPR=%PROMPT%
@if NOT EXIST setup.bat goto ERR1
@echo WARNING: THis test requires the unix 'tr' utility ...
@echo A WIN32 port of this utility, and others can be obtained from 
@echo http://unxutils.sourceforge.net/
@echo Unpack the zip, and put tr.exe in your PATH ...
@echo Continue ...
@pause
call setup
call mdd temp
@if NOT EXIST ..\T-null.bat goto ERR2
@set PROMPT=# 

@echo dwa> temp
@echo trzy>> temp
@REM type temp | tr '\r\n' '\0' > temp1
type temp | tr "\r\n" "\0" > temp1
echo jeden> file-list
type temp1>> file-list

genfile -f jeden
genfile -f dwa
genfile -f trzy
%TEMPT% cfTvvvvv archive file-list -H ustar
@echo Above output should include ... (if tr does its job ;=))
@echo tar: file-list: file name read contains nul character
@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

@goto WAIT

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

:END
@set PROMPT=%TEMPPR%
