PDA

View Full Version : A hash calculator for folder comparison.



CCF
15-11-2008, 01:15 PM
Hello

Just want to ask if any one know of a free hash calculator to check if two folders or even drives are identical?

Came across FileCheckMD5, but havnt quite found how exactly I could use it to compare folders integrity.

Many thanks in advance :)

sal
15-11-2008, 01:53 PM
http://www.beeblebrox.org/hashtab/

Edit - Just realised it doesn't do folders.

Erayd
15-11-2008, 02:12 PM
Usually you can't actually hash a directory at all (note this is a small lie to avoid excessive technical detail, and from your perspective as a user would seem to be true), as it's a filesystem meta-structure. The normal technique to do what you are asking would be to recursively hash every file in the directory, and then compare the hashes and the directory structure.

Something like rsync should be able to do a pretty good job of telling you what (if anything) has changed.

CCF
15-11-2008, 03:49 PM
Usually you can't actually hash a directory at all (note this is a small lie to avoid excessive technical detail, and from your perspective as a user would seem to be true), as it's a filesystem meta-structure. The normal technique to do what you are asking would be to recursively hash every file in the directory, and then compare the hashes and the directory structure.


Thanks for the update, never saw it that way before. Forgot that folders are filesystem meta-structure ><.

Will give that rsync a look.

More suggestions are welcome :)

andrew93
16-11-2008, 05:48 PM
A small VB/VBA script could do this. What output would you want to see? Also, would you want to run this as a stand-alone application or via something like Excel?

dyewitness
17-11-2008, 09:57 AM
Not sure from your post what the exact requirements are, but if you wanted to see how the folders differed, you could also use something like Winmerge (http://winmerge.org/).