home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / xwplascr.zip / XWPL0208.ZIP / release / bin / packtree.cmd < prev    next >
OS/2 REXX Batch file  |  2000-01-23  |  568b  |  22 lines

  1. /* PACKTREE.CMD:
  2.  *
  3.  * Packs a folder and all of its subfolders into a
  4.  * zip file of the same name. The files are not yet
  5.  * deleted (if you want this, add an "-m" switch to
  6.  * the "zip" command line below.
  7.  *
  8.  * This requires that ZIP.EXE (InfoZip) be on the PATH.
  9.  *
  10.  *  (W) (C) 1998 Ulrich Möller. All rights reserved.
  11.  */
  12.  
  13. '@echo off'
  14.  
  15. /* get the name of the folder without the full path */
  16. foldername = filespec("NAME", directory());
  17.  
  18. /* now pack */
  19. Say "Packing "directory()" into file "foldername".zip..."
  20. "zip -r9 ..\"foldername".zip *"
  21.  
  22.