please dont rip this site
COMP + Comparing Files

Compares the contents of two files.


PC-DOS 2.0+ (revised from 1.0)

MS-DOS equivalent: FILCOM (2.0+); COMP (1.0)




[d:][path] COMP [pd:][ppath][pfilename]



[d:][path] Specifies the drive letter and

path that contain the COMP

command file.

[pd:][ppath][pfilename] Specifies the first file or

set of files that you wish to

compare (primary file).

[sd:][spath][sfilename] Specifies the second file or

set of files that you wish to

compare (secondary file).

COMP allows you to see whether two files are identical, such

as comparing a file to its backed-up version saved under a

different name.



compares the TEST.TXT file on drive B with the TEST.TXT file on

drive C.


Compare error at offset XXXXXXXX

File 1 = YY

File 2 = ZZ

The XXXXXXXXth byte in the first file does not match the

corresponding byte in the second file. The two bytes (XX and ZZ)

are displayed in hexadecimal notation.

Compare more files (Y/N)?

Enter Y to compare additional files.

EOF mark not found

COMP could not find the end of valid data. Many text files do

not end with Ctrl-Z. The message may be innocuous.

Files are different sizes.

COMP will only compare files that are of the same size.

File sharing conflict

One of the files that is being comapred is currently being used

by another process. Try again later.

10 Mismatches- -ending compare

Ten mismatched locations were found in the compared files.


Version 2 allows you to use the *.* wildcard pattern to

check all of the files on a disk. DISKCOMP is faster for

comparing two disks, however. In many versions of MS-DOS, the

command FILCOMP provides additional information about how files

differ. See the appropriate user's manual for manufacturer-

specific alternatives.


[For related topics, press R]


APPEND Command




file: /Techref/dos/command/comp.htm, 2KB, , updated: 2002/11/1 17:54, local time: 2024/4/20 05:53,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> dos command comp</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2024 contributors:
o List host: MIT, Site host, Top posters @none found
- Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.

Welcome to!