@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% --version > version.txt

find "tar (tar port for Win32) 1.21.02" version.txt > nul
@if ERRORLEVEL 1 goto ERR3
@echo.
@echo Using current version ... 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.
@echo ==============================================================
@echo WARNING: Not using the proper version, *all* checks dubious...
@echo ==============================================================
@goto WAIT

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

:END
@set PROMPT=%TEMPPR%
