home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / c.lbr / COMP1.HZP / COMP1.HLP
Encoding:
Text File  |  1991-11-18  |  2.4 KB  |  70 lines

  1. ;
  2.                                    COMP.COM                                   
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5.                4k (28)   D4B4  2.8        Dennis Wright 1/86       Z3COM2
  6.  
  7.   1- Syntax/Options  2- Examples of Use  3- Help File  4- COMP.HLP            
  8.  
  9.  
  10.  
  11.    COM╨á compare≤á ▓á file≤ displayinτá byte-for-bytσá matcΦá anΣá difference«ì
  12. Split-screeε display¼ showinτ match¼ differences¼ iε botΦ he° anΣ ASCII¼ ease≤ ì
  13. comparison«á  Ha≤á trailinτá ╘á optioε fo≥ settinτ Registe≥ ╣á (oµá ZCPR│á RE╟ ì
  14. utility⌐á witΦá code≤ ░ t∩ 3¼á indicatinτ file≤ (sourcσ anΣá destination⌐á no⌠ ì
  15. found¼ anΣ file≤ eithe≥ identica∞ o≥ different.
  16. :1
  17.  
  18.  
  19.    Syntax:  COMP du:file1 du:file2 /o
  20.  
  21.   Options:  M    ...display the differences but use memory relative 
  22.                       addresses starting at 100 hex
  23.             T    ...differences are tested for but not displayed.  Flow
  24.                       control register 9 is set depending on the test 
  25.                       results as follows:
  26.                       Reg 9 = 0 if both files compare
  27.                       Reg 9 = 1 if file1 is not found
  28.                       Reg 9 = 2 if file2 is not found
  29.                       Reg 9 = 3 if files do not compare
  30. :2
  31.  
  32. Examples of Use:
  33.  
  34.    a. Following ZEX file tests if version of file exists before copying:
  35.  
  36.       COMP $1 $1 /T
  37.       IF 9 1
  38.         ECHO -- $1 NOT FOUND
  39.       ELSE
  40.         IF 9 2
  41.           ECHO -- DESTINATION FILE DOES NOT EXIST, COPYING $1 TO DESTINATION
  42.           AC $2=$1
  43.         ELSE
  44.           IF 9 3
  45.             ECHO -- FILES ARE DIFFERENT, UPDATING $2 with $1
  46.             AC $2=$1
  47.           ELSE
  48.             ECHO -- FILES ARE IDENTICAL, UPDATE NOT REQUIRED
  49.           FI
  50.         FI
  51.       FI 
  52.  
  53.  
  54.  
  55. Examples of Use (continued):
  56.  
  57.    a. w comp WORK:*.* BACKUP:<cr>   <-- Uses W.COM and COMP to compare, file 
  58.                                         by file, equality of directories WORK 
  59.                                         and BACKUP.
  60. :3
  61.  
  62.  
  63.                                    COMP.HLP
  64.  
  65.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  66.                5k (34)   BB9E  2.8        Dennis Wright 1/86       Z3HLP2
  67. ==============================================================================
  68.  
  69.    Z-System HELP file for COMPare utility.
  70. :4 :COMP** ** ** **  ** ** ** **  **