CPD Version 1.0 Gene Pizzetta August 10, 1991 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. USAGE: 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 filename 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: 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. 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. 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. HISTORY: Version 1.0 -- August 4, 1991 -- Gene Pizzetta The idea (but not the code) came from CDIR 2.0 by Robert Wilcox and Richard Brewster. This program could be a lot faster if both directories were loaded into memory first, but it does the job. Next time . . . Please report any bugs or make suggestions to: Gene Pizzetta 481 Revere St. Revere, MA 02151 Voice: (617) 284-0891 Newton Centre Z-Node: (617) 965-7259 Ladera Z-Node Central: (213) 670-9465