Contents of the CPT_HELP.TXT file CPT ( CoPy_Tree ) -- Copy a directory tree. CPT is a multipurpose tool for copying, merging, and replacing files and directories. When CPT is used to merge two trees only those files that have changed may be copied. CPT may also be used to backup trees using the file's archive information and/or by the file's last modified date. CPT copies hidden, system, and read-only files. FORMAT CPT source_pathname target_pathname [options] ARGUMENTS source_pathname Specify the directory tree to be copied. target_pathname Specify the directory tree to be created, replaced, or merged. The target_pathname can not be a file. OPTIONS (use /no to disable) (default) /after xx Copy only files that have been modified on or after the (None) specified date. The format of the date specified is mm-dd-yy, e.g. '/after 9-26-86' for September 26, 1986. /attr xx Set the DOS file attributes of the destination file (None) to the specified 'xx'. The 'xx' field may be any or all of the following characters: 'a' - to set the file's 'has not been archived' flag 'h' - to set the file's hidden flag 'r' - to set the file's read-only flag 's' - to set the file's system flag By default CPT uses the source attributes appended with the modified flag ('has not been archived' flag to true). /backup Only copy files that have not been modified since the (False) backup. This option uses the file system archive bit which is set whenever a file is modified or created. The archive bit is cleared on the source file. /before xx Copy only files that have been modified on or before (None) the specified date. The format of the date specified is mm-dd-yy, e.g. '/before 4-18-85' for April 18, 1985. /copy Force copy of object even if source and destination (False) files have the same date/time/size attributes. The /mdate, /msize, and /mtime switches are ignored. /del Force deletion of target file even if the file is (False) read-only. /help Help, prints this help. /l List all objects as they are copied. (True) /ld List directories as they are copied. (True) /lf List files as they are copied. (True) /look Only look at what would be copied, do not copy (False) anything. /mdate Match based on file date stamp. If a source filename (True) matches a target filename do not copy the source if the date stamps of the files are the same. /mnew When using /mdate and /mtime for matching only copy (True) files that are newer than the destination file. /msize Match based on file size. If a source filename (True) matches a target filename do not copy the source if the files are the same size. /mtime Match based on file time stamp. If a source filename (True) matches a target filename do not copy the source if the time stamps of the files are the same. /o ext Copy only files whose extensions are the same as the (None) given extension. Several '/o ext' pairs may be specified. The extensions may contain the DOS wildcards '?' and '*'. /pdt Preserve the source's modification date, time, and (True) attributes. /query Prompts the user before copying each file. The valid (False) responses to the query prompt are: 'y' - 'yes', copy this file, 'n' - 'no, do not copy this file, 'q' - 'quit', do not copy any more files, 'g' - 'go', suppress further queries, copy remaining files, /sort Sort the entries in the destination tree. (True) /verify Sets the DOS verify flag to TRUE when copying files. (False) This slows CPT down by approximately 30%. It can not be used to turn global DOS verify setting, it is only a temporary setting. /warning Print warning messages. (True) ENVIRONMENT The environment variable "CPTFLAGS" is examined for additional command line options. Options specified on the command line override the environment options. Environment variables are defined using the DOS SET command. The "CPTFLAGS" environment variable is optional. EXAMPLES cpt a:\ c:\dos Copy all of floppy A: to directory "\DOS" on drive C: cpt \user\sei\demo demo Copy the "\user\sei\demo" tree to the directory "demo" in the current directory. cpt \download /o ?q? demo Copy only files that have a 'q' as the second character in their extension. cpt \source a:\870102 /after 1-2-87 /before 1-2-87 Copy all of the files that were last modified on January 2, 1987. cpt \sei\src b:\870228 /backup /o c /o h /o asm /verify Copy all '*.c', '*.h', and '*.asm' files that have been modifed since the last backup, and verify the floppy writes. set CPTFLAGS=/nosort /verify /del Use the DOS SET command to alter various CPT default settings. LIMITS Maximum number of items in a single directory, 1000. Maximum depth of subdirectories, 32. Maximum number of command line '/o' extensions, 10. Maximum number of environment variable, 'CPTFLAGS', options, 20. Developed on DOS 3.2, should work on DOS 3.0. LOCATION C:\SEI\UPLOAD\CPT.EXE CPT Version 2.20 Tuesday, March 24, 1987 10:17:24 pm (C) Copyright 1986, 1987 by Synergistic Enterprises Inc. (SEI) All rights reserved. Registration #00042 Author: Chane Cullens Send your comments, questions, problems, registration to: 12505 SW North Dakota #1714 Tigard, OR 97223 503-684-7819 This is a user supported product. With your support we can continue to improve and expand it. If you find CPT.EXE to be of use, a registration fee of $15.00 is strongly suggested. A program disk, a printed manual, and a free update are available for $45.00. You are encouraged to copy and share this program with others, provided that: 1. No fee is charged for any copying or distribution, and 2. It is distributed only in its original unmodified state.