How to compare two big (!) binary files if equal or not?

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

How to compare two big (!) binary files if equal or not?

Postby mattad » Sun Mar 23, 2008 2:28 pm

Assume I have 2 big binary files (e.g. > 400 MB). I want to test (only) if they are equal or not.

When I open now UltraCompare and drag the first file onto the pane then UC starts to compare
it with the other (currently empty) file. This takes a long, long time and is useless.

How can I tell UC to wait until I dragged the second files onto UC as well?

Furthermore it seems to me that UC tries (in general) not only to find out if two files are equal or not
but what are the differences. That is fine but in my case not necessary.
Finding out if equal or not should be much, much faster.

I could imagine that there is an option which speeds up this comparison operation by only test on equalness.
How do I do that?

Matt
User avatar
mattad
Basic User
Basic User
 
Posts: 13
Joined: Tue Oct 11, 2005 11:00 pm

Re: How to compare two big (!) binary files if equal or not?

Postby pietzcker » Mon Mar 24, 2008 3:22 am

You could use the UC shell extension (select both files in Windows Explorer and then run Ultracompare from the (right-click) context menu) so it will load both files right from the start.

If you had the two files in different directories (as the only files there) you could do a directory compare where you have the option of doing a simple compare (just compare dates and file sizes) or a "real" compare but not list the actual differences unless you then switch to file compare.

Or just use the DOS command fc (http://www.computerhope.com/fchlp.htm)

Or - the best and fastest solution: Compare the two files' MD5 or other checksums. If they are equal, the files are equal. Use HashTab as an extension to Windows Explorer: http://www.beeblebrox.org/hashtab/index.php

HTH,
Tim
User avatar
pietzcker
Master
Master
 
Posts: 241
Joined: Sun Aug 22, 2004 11:00 pm

Re: How to compare two big (!) binary files if equal or not?

Postby Aqualung » Thu Oct 02, 2008 6:13 am

pietzcker wrote:You could use the UC shell extension (select both files in Windows Explorer and then run Ultracompare from the (right-click) context menu) so it will load both files right from the start.


Myeah, no need for UC: go about comparing hashes.
User avatar
Aqualung
Basic User
Basic User
 
Posts: 11
Joined: Sat Jul 28, 2007 11:00 pm


Return to UltraCompare General Discussion