home *** CD-ROM | disk | FTP | other *** search
- echo off
- echo.
-
- if "%1"=="" goto _help
- if "%2"=="" goto _drivec
-
- echo Unpacking to folder %2:\%1
- unzip %1 -d %2:\%1
- goto _out
-
- :_drivec
- echo Unpacking to folder C:\%1
- unzip %1 -d C:\%1
- goto _out
-
- :_help
- echo Usage: UNP [ZIP-packet without extension] [Destination drive]
- echo.
- echo Examples: UNP TEST E Unpack TEST.ZIP to folder E:\TEST
- echo UNP TEST Unpack TEST.ZIP to folder C:\TEST
- echo drive C is default
- echo.
- echo Do NOT use any wildcards (? or *) as the folders are created
- echo by the name of the packet and by using *.* name for a packet
- echo it will unpack ALL the packets to the SAME folder!
-
- :_out
- echo.
- echo Everything is done!