------------------------  COMP - External DOS Command  -------------------------

COMP compares two files or two sets of file to see if their contents match.

FORMAT:   COMP [d1:][path1][filename1[.ext1]]  [d2:][path2][filename2[.ext2]]

REMARKS:

   [d1:][path1][filename1[.ext1]] - describes the primary set of files.  If d1
                                    is omitted, the default drive is assumed. If
                                    path1 is omitted, the current directory is
                                    assumed.

   [d2:][path2][filename2[.ext2]] - describes the secondary set of files.  If d2
                                    is omitted, the default drive is assumed.
                                    If path2 is omitted, the current directory
                                    is assumed.

   The primary set of files are compared, one by one, to the secondary set of
   files and any differences are reported.

   Global characters (* and ?) are allowed in both sets of file specifications.

   If COMP is entered with no parameters, or if the second parameter is missing,
   you will be prompted for them.  You will also be prompted for the file
   specifications if the first one is not found.

   If either parameter contains only a drive letter or a path and no filename,
   then *.* (all filenames) will be assumed.

   The paths and filenames are displayed as files are compared.  If a file
   specified in the secondary set of files is not found, an error message is
   displayed.  An error message is also displayed if the files to be compared
   are not the same size or if a specified directory path is invalid.

   If the comparison detects mismatching information in the files being
   compared, a message will be displayed.  The message has the form:

          Compare error at offset xxxxxxxx
          File1 = y
          File2 = z

       Where: xxxxxxxx is the offset (number of bytes) into the files.  File1 is
              the filename of the first file.  File2 is the filename of the
              second file.  y and z are the hexadecimal values of the
              mismatching information in the two files.

   If ten unequal comparisons are detected, processing ends with the message:

          10 Mismatches - ending compare

   If all information in all compared files match, COMP displays:

          Files compare OK

   When COMP completes the comparisons, you will be prompted:

          Compare more files (Y/N)?

          If you enter N, processing ends.  If you enter Y, COMP will prompt
          you for the next set of files to be compared.

   COMP does not wait for you to insert a diskette (as does DISKCOPY, for
   example).  If you want to compare files that are not on the same diskette as
   the COMP command, you should enter COMP with no parameters.  You may then
   insert the appropriate diskette when COMP prompts you for the files to be
   compared.


NOTE: In DOS Version 3, you may preface COMP with the drive letter and directory
   path, [d:][path], where the command file can be found.


EXAMPLES:

Compare file MYFILE in the current directory of drive A to MYFILE in the
current directory of drive B.  The default drive is C:

          COMP A:MYFILE B:MYFILE


Compare all files on drive A that have an extension of .DAT to files of the same
name and extension on drive B.  Both sets of files are in the current directory
of the respective disks.  The default drive is A:

          COMP *.DAT B:


Compare all files in the current directory of drive A to all files of the same
name in the current directory of drive B:

          COMP A: B:


Compare all files in the BUDGET directory of drive A to all files of the same
name in the DATA directory of drive B.  Both BUDGET and DATA are subdirectories
of the root level on their respective disks:

          COMP A:\BUDGET B:\DATA
