;
                                    CPD.COM                                   

             Size (recs) CRC   Version    Author/Latest Issue      Disk
               4k (29)   8D31  1.00       Gene Pizzetta 8/91       Z3COM3

  1- Syntax/Options  2- Installation                                          


   CPD is A ZCPR3 utility to compare two directories and indicate which  files
exist in both  directories and  which  exist only in the first directory.   It
also allows setting the  archive  attribute on those files which exist in both
directories, facilitating copying those that do not.

   Version 1.0 (8/4/91) by Gene Pizzetta.   The  idea (but not the  code) came
from CDIR 2.0 by Robert Wilcox and Richard Brewster.  
:1
    Syntax   CPD {dir:}{afn} {dir:} {{/}options}

   If no DU or DIR is given,  the current default is assumed.   If no filename
is given, all files  ("*.*") is assumed.   To make the the first directory the
current  directory,  only a colon or  a period need  be  entered for the first
token.

   If no option is given, all matching non-system files in the first directory
are displayed with files  marked  which  also  exist  on the second directory.
These duplicated files will be marked by both an  asterisk following the file-
name and by dim or reverse video  (the standout string installed in the TCAP).
The asterisk allows visible markings in printer output or for  TCAP's  with no
standout string installed.

   The file display can be aborted at any time with ^C.
 Options - 1/2   

   A slash is not required if the  option list is the  third  parameter on the
command line.

     B    Display only files that exist in both directories, that 
          is, display only marked files.  Since option M is 
          incompatible, choosing this option cancels option M.

     M    Display only files in the first directory that are 
          missing from, that is, do not exist in the second 
          directory.  Since option B is incompatible, choosing 
          this option cancels option B.

     A    Set the archive attribute of matching files in the 
          first directory that also exist in the second directory 
          (marked files).  This allows copying the files with a 
          copy program that recognizes archived files, such as 
          COPY, PIP, ACOPY, etc.  CPD does not remove archive 
          attributes on other files, so they should first be 
          reset with a program such as DA or FA before calling 
          CPD.
 Options - 2/2 

     S    Include system (hidden) files.  By default CPD ignores 
          system files in the first directory, but duplicate 
          files in the second directory, including system files, 
          are always found.

     P    Do not page screen display.  By default CPD waits for a 
          key to be pressed after each screenful of filenames.

     L    Echo the screen display to the printer.  Printer output 
          is continuous (no paged).  This option also suppresses 
          screen paging.

     F    Send a final form feed to the printer after the display 
          is completed.  This option has no effect unless option 
          L is also active.
:2
 Installation 

   All options except  L  can be made the default mode by using  ZCNFG and the
accompanying CPDxx.CFG file.  In that case the command line option will toggle
the option to the  non-default  mode.   Do not set both options  B  and  M  as
defaults.  You will not like the result.

   It is best not to change the name of the  CFG  file,  so  that  ZCNFG  will
always be able to find it, even if you change the name of CPD.
