GIFT40B5.ZIP.x/PRO-T.BAT

767 B 5f731d7e6c46ccd7…
@echo off
echo off
rem -- pro-t.bat - process "test" archive request - for ProDOOR 3.4
rem -- %1-resultfile, %2 sourcefile

testfile %2 zip lzh gif
if errorlevel == 98 goto cant_handle
if errorlevel == 3 goto gif
if errorlevel == 2 goto lzh
if errorlevel == 1 goto zip
goto end

:gif
giftest %2 >>%1
goto end

:zip
pkunzip -t >>%1 %2
if errorlevel 1 goto error
goto end

:lzh
rem lha 2.11 or later required for test function to work
lha t /v >>%1 %2
if errorlevel 1 goto error
goto end

:pack_error
echo Y|del $$$$ >nul
rmdir $$$$
goto error

:error
echo. >>%1
echo %2 has errors! >>%1
echo %0: Error were detected while processing %2 ! >>%1
goto end

:cant_handle
echo Sorry, %0 does not know how to process %2 ! >>%1

:end