home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / pcmag / vol7n11.zip / COMPARE.DOC < prev    next >
Text File  |  1988-05-03  |  2KB  |  48 lines

  1.  
  2. COMPARE
  3. Command
  4.  
  5. Michael J. Mefford                             1988 No. 11
  6. (Utilities)
  7.  
  8.  
  9. Purpose:    Displays the differences between two text or two
  10. binary files.  Files need not be the same length, and paragraph reformatting changes introduced by word wrap are ignored.
  11.  
  12. Format:    COMPARE filespec filespec[/B][/W]
  13.  
  14. Remarks: COMPARE's default assumption is that the filenames designated in
  15. filespec are to be compared as ASCII text files.   Formatting commands
  16. embedded by word processing programs are reproduced on screen but are not
  17. acted upon.   Files in which the "high bit" is set (such as those produced by
  18. WordStar's document mode) can be made displayable in ASCII by entering the
  19. optional /W on the command line.
  20.  
  21.     Files are displayed in two on-screen windows.  Differences are shown
  22. in inverse video, and are preceeded by several lines of matching text to
  23. provide a context.  When the windows are filled, pressing any key continues to
  24. search for differences; pressing Esc returns the user to DOS.  All character
  25. modes, but no graphics modes, are supported.  
  26.  
  27.     Files with .COM or .EXE extensions are automatically displayed in
  28. COMPARE's binary mode, which is similar to that produced by DEBUG.COM.  Unlike
  29. DEBUG, however, COMPARE uses the IBM/ASCII symbol set rather than periods to
  30. show non-alphanumeric characters, and its segment offset begins at zero rather
  31. than at 100h.  Any file can be compared in binary mode by adding the optional
  32. /B switch on the command line.
  33.  
  34. Note:    When COMPARE finds a difference between files it searches ahead up to
  35. 400 bytes (the reach value) for a string of 10 (excluding spaces) successive
  36. matching characters (the sequence value).  DEBUG.COM can be used to change the
  37. reach and search values on a copy of COMPARE.COM thus: 
  38.  
  39.     DEBUG COMPARE.COM
  40.     E 6ED cd ab
  41.     E 6F5 cd ab
  42.     E 6F9 gh ef
  43.     W
  44.     Q
  45.  
  46.     where abcd is the reach value, in hex (default 0190h) and efgh is the
  47. sequence value (default 000Ah).
  48.