How do I detect file diffs only yes/no ?

General questions about using ExamDiff Pro, ideas for new features, bug reports, and usage tips.
Post Reply
pstein
New Member
Posts: 2
Joined: Tue Jan 16, 2007 11:41 am

How do I detect file diffs only yes/no ?

Post by pstein »

I want to compare occasionally two very big (binary) files or two directories which contain very big (binary) files.
Very big means > 300 MB

I simply want to know if these two files are equal or not resp. yes or not.
I don't want to know where (in which lines or hex address) are exactly the differences.

Currently the comparisons are very very long running.

I could imagine that ExamDiff 4.5.2.2 offers a "speed" compare function/option which does not pay attention to the difference locations but try to search simply for the answer files are equal yes/no

How EXACTLY can I enable this option?

Peter
User avatar
psguru
Site Admin
Posts: 2231
Joined: Sat May 15, 2004 4:23 pm
Location: California
Contact:

Re: How do I detect file diffs only yes/no ?

Post by psguru »

Options | Misc | Messages | Message about different binary files.
psguru
PrestoSoft
AlexL
Expert Member
Posts: 129
Joined: Wed Aug 11, 2004 6:25 am
Location: Israel
Contact:

Re: How do I detect file diffs only yes/no ?

Post by AlexL »

pstein wrote:I want to compare occasionally two very big (binary) files or two directories which contain very big (binary) files.
Very big means > 300 MB
...
Currently the comparisons are very very long running....
By the way, maybe this topic will also help you to decrease comparison time.
david74
New Member
Posts: 4
Joined: Sat Aug 07, 2010 4:07 pm

Re: How do I detect file diffs only yes/no ?

Post by david74 »

If all you want is a byte-by-byte comparison, with a yes/no result, just use the MSDOS command processor. The following CMD file takes two arguments, the paths of the two files (I don't know how to compare all files in two folders, but it can be done). It prints whether the two match or not. I created this and use this all the time. Take care to copy this on the clipboard to make sure all the little funny characters are correct.

----
@echo off
set equal=different
For /f "Tokens=*" %%i in ('"echo n|comp %1 %2 /a /l"') do if "%%i"=="Files compare OK" set equal=identical
echo %equal%: %1
if %equal%==different echo *** Files Differ: %1 %2
----

No guarantees.

David
AlexL
Expert Member
Posts: 129
Joined: Wed Aug 11, 2004 6:25 am
Location: Israel
Contact:

Re: How do I detect file diffs only yes/no ?

Post by AlexL »

Or just use "fc /b File1 File2".
Post Reply