home *** CD-ROM | disk | FTP | other *** search
- ;
- COMP.COM
-
- Size (recs) CRC Version Author/Latest Issue Disk
- 4k (28) D4B4 2.8 Dennis Wright 1/86 Z3COM2
-
- 1- Syntax/Options 2- Examples of Use 3- Help File 4- COMP.HLP
-
-
-
- COM╨á compare≤á ▓á file≤ displayinτá byte-for-bytσá matcΦá anΣá difference«ì
- Split-screeε display¼ showinτ match¼ differences¼ iε botΦ he° anΣ ASCII¼ ease≤ ì
- comparison«á Ha≤á trailinτá ╘á optioε fo≥ settinτ Registe≥ ╣á (oµá ZCPR│á RE╟ ì
- utility⌐á witΦá code≤ ░ t∩ 3¼á indicatinτ file≤ (sourcσ anΣá destination⌐á no⌠ ì
- found¼ anΣ file≤ eithe≥ identica∞ o≥ different.
- :1
-
-
- Syntax: COMP du:file1 du:file2 /o
-
- Options: M ...display the differences but use memory relative
- addresses starting at 100 hex
- T ...differences are tested for but not displayed. Flow
- control register 9 is set depending on the test
- results as follows:
- Reg 9 = 0 if both files compare
- Reg 9 = 1 if file1 is not found
- Reg 9 = 2 if file2 is not found
- Reg 9 = 3 if files do not compare
- :2
-
- Examples of Use:
-
- a. Following ZEX file tests if version of file exists before copying:
-
- COMP $1 $1 /T
- IF 9 1
- ECHO -- $1 NOT FOUND
- ELSE
- IF 9 2
- ECHO -- DESTINATION FILE DOES NOT EXIST, COPYING $1 TO DESTINATION
- AC $2=$1
- ELSE
- IF 9 3
- ECHO -- FILES ARE DIFFERENT, UPDATING $2 with $1
- AC $2=$1
- ELSE
- ECHO -- FILES ARE IDENTICAL, UPDATE NOT REQUIRED
- FI
- FI
- FI
-
-
-
- Examples of Use (continued):
-
- a. w comp WORK:*.* BACKUP:<cr> <-- Uses W.COM and COMP to compare, file
- by file, equality of directories WORK
- and BACKUP.
- :3
-
-
- COMP.HLP
-
- Size (recs) CRC Version Author/Latest Issue Disk
- 5k (34) BB9E 2.8 Dennis Wright 1/86 Z3HLP2
- ==============================================================================
-
- Z-System HELP file for COMPare utility.
- :4 :COMP** ** ** ** ** ** ** ** **