echo off if not "%1"=="" goto ok cls echo. echo UNARC - For uncompressing a set of archives, each to its own subdirectory echo off the current directory. Supports ZIP, ARJ, LZH, ZOO, ARC and PAK echo (assumes that you have PKZIP etc..) echo. echo USAGE: UNARC opt1 opt2 opt3.. echo Where: "optn" are the name of the archive(s) with/without path or option(s) echo. echo e.g. UNARC A: B: "Un-archive all archives on drive A: and B:" echo UNARC /W "Un-archive all archives from current drive" echo UNARC \BIN\SRC* "Un-archive all archives matching \BIN\SRC*" echo ("\BIN\FRED.ZIP" would be uncompressed into subdir "FRED" etc..) echo. goto exit :ok cls echo Unpacking ZIP d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .zip [md $n//pkunzip $w $n\]R echo Unpacking ARJ d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .arj [md $n//arj e $w $n\]R echo Unpacking LZH d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .lzh [md $n//lha x $w $n\]R echo Unpacking ZOO d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .zoo [md $n//cd $n//zoo -e $l$r$f//cd ..]R echo Unpacking ARC and PAK d %1 %2 %3 %4 %5 %6 %7 %8 %9 + .arc .pak [md $n//pkunpak $w $n\]R :exit