home *** CD-ROM | disk | FTP | other *** search
/ norge.freeshell.org (192.94.73.8) / 192.94.73.8.tar / 192.94.73.8 / pub / computers / pcjr / utility / FORMUTIL.LZH / ZIPPROC.DOC < prev    next >
Text File  |  1990-10-26  |  3KB  |  79 lines

  1. ZIPPROC is a general purpose archive file processor.  It automates
  2. the bulk processing of archive files.  It is fully configurable and
  3. uses external utilities, so it can be used with ALL archive formats.
  4.  
  5. Some possible uses are:
  6.    - convert archive files from one format to another
  7.    - add comments to archive files
  8.    - strip comments from archive files
  9.    - create library lists from archive directories
  10.    - update archives to new compression techniques
  11.  
  12. ARCPROC uses external utilities to process files, so it will always
  13. be useful with future formats.
  14.  
  15. The general operating procedure is:
  16.  
  17.     create a working directory
  18.     for each source archive
  19.         tranfer the archive to the working directory
  20.         perform the #1 operation on the source file (eg. unpack it)
  21.         if /D switch used then
  22.             delete the source archive
  23.         else
  24.             transfer the source archive back to the source directory
  25.         end if
  26.         perform the #2 operation on the directory contents
  27.         perform the #3 operation on the directory contents (eg. repack it)
  28.         transfer the destination archive back to the source directory
  29.         clear the directory
  30.     next
  31.     erase the working directory
  32.  
  33.  
  34. The source and destination archive extensions, as well as the operations
  35. are specified in the file ZIPPROC.CTL.  The control file consists of five
  36. lines: the first two specify the source and destination file extensions;
  37. the last three specify the operations to be performed.  For example:
  38.  
  39.     ARC
  40.     ZIP
  41.     ARCE %filename
  42.     COPY d:\myfile
  43.     PKZIP %filename
  44.  
  45. where:
  46.     1st line - Source archive extension. (these files will be moved to
  47.                the work dir for processing, one by one)
  48.     2nd line - Destination archive extension. (these files will be moved
  49.                back from the work dir when the processing is completed)
  50.     3rd line - 1st operation to be performed.  This can be anything that
  51.                can normally be done from the DOS command line.  Usually,
  52.                this command will invoke you archive unpacking utility.
  53.                Three special variables may be used:
  54.  
  55.                %filespec - replaced with full file specification
  56.                            (eg. MYFILE.TXT)
  57.                %filename - replaced with name portion of file spec
  58.                            (eg. MYFILE)
  59.                %ext      - replaced with extension portion of spec
  60.                            (eg. TXT)
  61.  
  62.     4th line - 2nd operation to be performed.  This can be anything that
  63.                can normally be done from the DOS command line.  If you
  64.                wish to add or delete files, or perform any other task
  65.                you can add it here.  If there is no need for special
  66.                tasks, just leave this line blank.
  67.                NOTE: If you wish to perform more than one special task,
  68.                      this line can execute a batch file containing to
  69.                      perform more complicated functions.
  70.     5th line - 3rd operation to be performed.  This can be anything that
  71.                can normally be done from the DOS command line.  Usually,
  72.                this command will repack the files in the directory.
  73.  
  74. The sample shown would convert all .ARC files to .ZIP files, adding the
  75. the file "myfile" to each archive.
  76.  
  77. ZIPPROC.CTL may be modified with your favorite text editor.
  78.  
  79.