home *** CD-ROM | disk | FTP | other *** search
/ Treasure / TREASURE.ISO / os2 / util / misc / unp.cmd < prev    next >
Encoding:
Text File  |  1995-10-24  |  678 b   |  29 lines

  1. echo off
  2. echo.
  3.   
  4. if "%1"=="" goto _help
  5. if "%2"=="" goto _drivec
  6.  
  7. echo Unpacking to folder %2:\%1
  8. unzip %1 -d %2:\%1
  9. goto _out
  10.  
  11. :_drivec
  12. echo Unpacking to folder C:\%1
  13. unzip %1 -d C:\%1
  14. goto _out
  15.  
  16. :_help
  17. echo Usage:    UNP [ZIP-packet without extension] [Destination drive]
  18. echo.
  19. echo Examples:    UNP TEST E    Unpack TEST.ZIP to folder E:\TEST
  20. echo         UNP TEST    Unpack TEST.ZIP to folder C:\TEST
  21. echo                 drive C is default
  22. echo.
  23. echo     Do NOT use any wildcards (? or *) as the folders are created
  24. echo     by the name of the packet and by using *.* name for a packet
  25. echo     it will unpack ALL the packets to the SAME folder!
  26.  
  27. :_out
  28. echo.
  29. echo Everything is done!