home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTIL_ARC
/
QAZ_230.ZIP
/
QAZ-DEMO.EXE
/
QAZTEST.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-05
|
906b
|
45 lines
@echo off
rem QAZTEST.BAT - Uses QAZ to generate a "list file" of filespecs in a ZIP
rem archive and then passes that list file to PKUNZIP as a
rem list of files to test.
if exist foo_bar.$$$ goto temp_file_exist
if exist %1.zip goto get_list_file
echo Can't find file: "%1.ZIP"
goto end
:get_list_file
qaz %1.ZIP %2 /vq /b /r > foo_bar.$$$
if errorlevel 51 goto not_zip
if errorlevel 50 goto test_zip
if errorlevel 0 goto not_zip
:test_zip
if not exist foo_bar.$$$ goto temp_file_err
pkunzip -t %1.ZIP @foo_bar.$$$
if errorlevel 1 goto failed
echo Files test Ok.
del foo_bar.$$$
goto end
:failed
echo File(s) failed test.
goto end
:temp_file_exist
echo Cannot generate list file! ("foo_bar.$$$" exists)
goto end
:temp_file_err
echo Error generating list file!
goto end
:not_zip
echo "%1" is not a .ZIP file!
goto end
:end