COMP
Home >>
MS-DOS Reference >>
Command Categories >>
File and Disk Management >>
COMP
Description
Compares two files and displays any differences.
Command Syntax
COMP [file1] [file2] [/d] [/a] [/l] [/n=nnn]
[/c]
(The command line parameters may only be used in DOS 5)
-
file1 and file2 are the files to compare. You may use wildcards
-
/d displays differences as decimal numbers (instead of hex numbers)
-
/a displays differences as ASCII characters (instead of hex numbers)
-
/l displays differences by line number instead of file position
-
/n compares only nnn lines in each file
-
/c ignores differences between upper and lower case
If you don't have DOS 5 or you miss out file1 and file2,
you will be asked for the filenames to compare
Comments
If the files are the same, "Files compare OK" will be printed.
Printed from the NukeSoft MS-DOS Reference. Copyright
© 1995 - 2006 Marcus Houlden