home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #1
/
monster.zip
/
monster
/
UTIL_ARC
/
QAZ_230.ZIP
/
QAZ-DEMO.EXE
/
UNQAZ.BAT
< prev
next >
Wrap
DOS Batch File
|
1994-01-07
|
2KB
|
157 lines
@echo off
rem UNQAZ.BAT v2.29 - by Robert Rothenburg Walking-Owl 1993,94
rem A bare-bones demonstration of the /r switch for QAZ v2.20.e
rem UNQAZ uses QAZ to identify the file/archive type and then
rem call the appropriate unarchiver to decompress the file.
rem One useful modification is to have QAZ unarchive the file into
rem a temporary directory and then use a virus scanner (or set of
rem scanners).
rem See the documentation for more information
if exist %1 goto file_exists
echo File "%1" not found! (Use full filenames.)
goto end
:file_exists
qaz %1 /r /vqi
if errorlevel 56 goto undef
if errorlevel 55 goto un_codec
if errorlevel 54 goto un_sar
if errorlevel 53 goto un_tar
if errorlevel 52 goto unknown
if errorlevel 51 goto un_zoo
if errorlevel 50 goto un_zip
if errorlevel 48 goto un_uc2
if errorlevel 47 goto un_sqz
if errorlevel 41 goto undef
if errorlevel 40 goto un_pak
if errorlevel 39 goto un_lha
if errorlevel 33 goto undef
if errorlevel 32 goto un_hpack
if errorlevel 31 goto un_hyper
if errorlevel 30 goto un_hap
if errorlevel 29 goto un_ha
if errorlevel 28 goto un_gzip
if errorlevel 26 goto undef
if errorlevel 25 goto un_dwc
if errorlevel 24 goto un_diet
if errorlevel 22 goto undef
if errorlevel 21 goto un_gzip
if errorlevel 20 goto un_arj
if errorlevel 19 goto un_arc
if errorlevel 18 goto undef
if errorlevel 17 goto un_lha
if errorlevel 16 goto view_text
if errorlevel 1 goto error
:undef
echo UNQAZ.BAT: File type undefined!
goto end
:error
echo An error has occurred!
goto end
:view_text
more < %1
goto end
:un_arc
pkxarc -x %1
goto end
:un_arj
arj e %1
goto end
:un_diet
diet -r %1
goto end
:un_dwc
dwc -e %1
goto end
:un_gzip
gzip -dv %1
goto end
:un_ha
ha e %1 *.*
goto end
:un_hap
pah e %1 *.*
goto end
:un_hyper
hyper -x %1
goto end
:un_hpack
hpack x %1
goto end
:un_pak
pak e %1
goto end
:un_lib
lue %1
goto end
:un_lha
lha e %1
goto end
:un_sit
unsit -x %1
goto done
:un_sqz
sqz e %1
goto done
:un_xsq
usq %1
goto done
:un_uc2
uc e %1
goto done
:un_zip
pkunzip %1
goto done
:un_zoo
zoo e %1
goto done
:un_tar
tar -xvf %1
goto done
:un_sar
sar e %1
goto done
:un_codec
codec -d %1 *.*
goto end
:unknown
echo Don't know how to unarchive this format.
goto end
:done
if errorlevel 1 goto error
echo Done.
:end
rem End Of Batch File.