SAMPLE command and resulting output     | Comments about the output

  COMP TESTDATA.TXT SAFEDATA.BAK          Compare the contents of the file 
                                          TESTDATA.TXT with SAFEDATA.BAK.
Files compare ok
                                          As you can see, the files are
Compare more files (Y/N)?Y                identical in content. COMP prompts
                                          you for another set of files when
Enter primary file specification          it is through comparing. 
GOODFILE.TXT
                                          You don't have to specify a second
Enter secondary file specification        filename to compare to, only a drive
BADFILE.TXT                               id or directory path.  If you don't
                                          specify a filename, DOS will look
Files compare ok                          for a file with the same name as the
                                          primary file on the secondary drive
Compare more files (Y/N)?N                id and directory path.


COMP C:\PROGRAMS\TUTOR.BAS A:TUTOR.BAK    Here we are comparing the file
                                          TUTOR.BAS in the PROGRAMS directory
C:\PROGRAMS\TUTOR.BAS and A:TUTOR.BAK     on drive C: with TUTOR.BAK in the
Compare error at offset 1A0               current directory on drive A:.
File 1 = 4D
File 2 = 32
Compare error at offset 1B5               The files do not compare, as you can
File 1 = 6E                               see.  COMP displays the offset into
File 2 = 40                               the file where the compare failed
Eof mark not found                        and what the values are.  These
                                          numbers are in hexadecimal(base 16).
Compare more files (Y/N)?N
