> I am looking for a microsoft or public domain tool that can diff two
> binary files (exe, lib or DLL) and able to concur if they are
> identical or not *ignoring* the header details such as time stamps.
> The idea is to find if two binary files built during two different
> time period are identical.
>
> The binary files are built using .NET 2008 version, if that matters.
>
> Please repond to the posting or reply to e-mail. Suggestions and
> existing tools, pointers to MSDN are welcome. MVP replies are most
> apperciated.
You say you want to know if it's identical or not? So you're just looking
for a true/false if the files are the same?
If so, just take a hash of each and compare them, the bigger the hash the
less likely collisions (of course they are pretty unlikely anyway for such
an application).
I notice someone has already written one, bound to be many about though:
http://corz.org/windows/software/checksum/
Or if you want to write one, see:
http://msdn.microsoft.com/en-us/libr...aphy.sha1.aspx
http://msdn.microsoft.com/en-us/libr...hy.sha512.aspx
IF you want to compare every single byte and list differences, you can just
File.GetAllBytes() the files you want, step through each of them in a for
loop a byte at a time and not the differences.
--
Mike
GoTinker, C# Blog
http://www.gotinker.com