home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / doshelp / helpsb.zoo / help / comp / examples.hlp next >
Encoding:
Text File  |  1989-01-01  |  1.9 KB  |  32 lines

  1. SAMPLE command and resulting output     | Comments about the output
  2.  
  3.   COMP TESTDATA.TXT SAFEDATA.BAK          Compare the contents of the file 
  4.                                           TESTDATA.TXT with SAFEDATA.BAK.
  5. Files compare ok
  6.                                           As you can see, the files are
  7. Compare more files (Y/N)?Y                identical in content. COMP prompts
  8.                                           you for another set of files when
  9. Enter primary file specification          it is through comparing. 
  10. GOODFILE.TXT
  11.                                           You don't have to specify a second
  12. Enter secondary file specification        filename to compare to, only a drive
  13. BADFILE.TXT                               id or directory path.  If you don't
  14.                                           specify a filename, DOS will look
  15. Files compare ok                          for a file with the same name as the
  16.                                           primary file on the secondary drive
  17. Compare more files (Y/N)?N                id and directory path.
  18.  
  19.  
  20. COMP C:\PROGRAMS\TUTOR.BAS A:TUTOR.BAK    Here we are comparing the file
  21.                                           TUTOR.BAS in the PROGRAMS directory
  22. C:\PROGRAMS\TUTOR.BAS and A:TUTOR.BAK     on drive C: with TUTOR.BAK in the
  23. Compare error at offset 1A0               current directory on drive A:.
  24. File 1 = 4D
  25. File 2 = 32
  26. Compare error at offset 1B5               The files do not compare, as you can
  27. File 1 = 6E                               see.  COMP displays the offset into
  28. File 2 = 40                               the file where the compare failed
  29. Eof mark not found                        and what the values are.  These
  30.                                           numbers are in hexadecimal(base 16).
  31. Compare more files (Y/N)?N
  32.