Jump to content

Anyone have Windows Utility to compare all files (bit by bit) in a directory tree?


Recommended Posts

I'm looking for a utility that will compare the files in two

directories (and subdirectories) and report any that are different.

 

I'm backing up images onto DVD and occasionally I get a verfification

error. Unfortunately it just says "Verification failed - one or more

files were different". It doesn't tell me how many files, or which

files (dumb software - RecordNow).

 

I'd like to compare the source directory to the DVD copy and figure

out if it's one unimportant image or 100 important images, so I know

whether or not to burn another copy or just add the one bad file to

the disk (or another disk).

 

I know I suppose I should burn a new disk to be safe, in case the

disk itself was bad and so prone to failure, but I'm still interested

in which files failed to verify.

 

I did a web search but didn't come up with any simple utility that

will compare directories and report differences in any files. All I can find are utilities that find files that are the same (duplicates) in two directory stuctures. Anybody

know of one (freeware prefered, but anything is of interest). I'm

running Windows XP Home.

 

I tried ExamDiffPro, but it only compares individual files or directory structures, it won't compare all files in all subdirectories as far as I can tell.

Link to comment
Share on other sites

This is easier in linux or unix...

 

start -> run -> cmd

 

in the dos prompt/windows shell

from directory 1, type this in a windows shell:

dir /B > file1

 

from directory 2:

dir /B > file2

 

You can compare the out put of both these files in wordpad.

 

If you want to get fancy, install Cygwin and run a diff on the files.

 

Email me if you want more detailed instructions. It's quite eye glazing, but actually straightforward.

Link to comment
Share on other sites

Thanks guys, but what I need is a bit by bit comparison of all the files in both directories, not just a comparison of file names and I don't think either suggestion will do that.

 

There are lots of directory synchronization programs that look for files with the same name but different sizes or dates but that's not what I need. I need to look at the binary contents of all the files.

 

What I need is a program that effectively does a backup verify, looking at and comparing the binary data in each file to see if it can find any differences. There are backup programs with verification, but I have not yet found one that will perform only the verify function if it's given the name of two directories.

 

There are programs that will do this given two files, but there are hundreds of files and doing them one by would would take days!

Link to comment
Share on other sites

we use ztree, a dos-like file manager

ver 1.49 may be required for xp

ver 1.41 will work with 98.me

 

it permits a split screen ( press F8)

and you can copy/move and do lots of stuff with filers and directories

it only LOOKS like a dos app it is a true 32 bit app

and supports lfn

a trial can be d/l from www.ztree.com

or just type ztree in your browser and find the site.

it makes no registry entries.

Link to comment
Share on other sites

Bob--

 

I use Comparator from SofteByteLabs:

 

http://softbytelabs.com/Frames.html

 

It used to be a freeware, but it looks like with the latest version they went to shareware. If you want, I can e-mail you the freeware version 2.2.

 

It's got two-pane window and you can scan folders and subfolders for files that are missing, newer, and the same. You have options to copy the files that are different/newer/older.

 

Not sure about "bit by bit" comparison--Comparator checks by file size and date.

Link to comment
Share on other sites

Hi bob,<p>

I would give you an esoteric find command but probably the simplest

thing to do is use "rsync" which is available on cygwin.

<p>

The command is basically :

<p>

rsync -n dir1 dir2

<p>

It will recursively go through your directories and tell you exactly

what files in dir2 are different from the files in dir1.

<p>

Just fyi: rsync is actually made to "synchronize" directories so

basically it does compares the two directories and cleverly copies

the differences only over The -n basically says don't bother copying

and tell me what the differences are which is what you want. (btw

rsync actually works over networks so its a great backup tool because

it will only transfer the differences)

Link to comment
Share on other sites

Not to keep replying to myself :) But but "rsync" is

basically a "synchronization" tool as you put it. I'm surprised that

in the "official" windows world (i.e. not cygwin) Synchronization is

based on timestamps or filesizes. This is really not the way to go

because timestamps can drift on different machines or if a clock

gets screwed up and you are forced to copy the entire file if you

change a small thing in it. "rsync" is basically doing the bit-by-bit

check in a clever way. It might be possible that your "sync" tools

may optionally do something similiar.

Link to comment
Share on other sites

Windiff (a Micro$oft tool) allows comparison of either a pair of files or whole directories. In the latter case it will report whether one directory has more files than the other, or if individual files differ, saying which file is more recent. You can then double click on a file and see an exact breakdown of where the differences lie, although that bit's only really useful for textual files.

 

I got it off the NT resource kit CD, but I think it's available for download from MS.

Link to comment
Share on other sites

I concur with Mendel Leisk's recommendation of CDCheck. After I copy a directory (or directories) to CD for archive, I run CDCheck to verify the integrity of the copies before deleting the files from the hard disk. Not the fastest operation in the world, but it works-- and provides peace of mind.
Link to comment
Share on other sites

You might also want to try WinMerge: http://winmerge.sourceforge.net/

 

Point it to two directories, turn on the recursive option, choose which file extensions you want to compare (*.*, *.gif, *.txt, etc) and it'll tell you which files are same/different/missing. If they're text files, you can also bring up a visual comparison and merge differences in the files. I use it for source code, but it works with binary files as well. Similar to WinDiff and Beyond Compare.

Link to comment
Share on other sites

Bob:

 

I strongly recommend WMatch 2.0, which is a PC Magazine Utility written last year. It's compatible with all versions of Windows from 95/NT through XP, and is extrememly easy to install and use.

 

When comparing two folders, if two files of the same name are found, and if they are the same size, then WMatch performs a 32-bit cyclical redundancy check on the contents of both files; this provides the "bit-by-bit" comparison you're looking for.

 

For more information, check out the following link:

 

http://www.pcmag.com/article2/0,4149,951402,00.asp

 

The above link provides extensive explanation of the installation, use, functionality (and programming) of this utility, but no visuals. Let me know if you'd like to see some screen shots, and I'll e-mail some to you.

 

PC Magazine utilities are free, but they've recently begun charging for access to their download library @ $19.97 per year for unlimited downloads. (Lower prices -- down to $4.97 -- are available for subscribers to their print magazine, or for limited time periods and downloads.)

 

I know you're not looking for one now, but if you ever decide to get a better back-up utility that provides file-by-file comparison during the verification stage, I strongly recommend Nero Burning ROM by Ahead Software:

 

http://www.nero.com/us/index.html

 

Good luck, and let me know if I can provide any additional information about either of these two programs.

Link to comment
Share on other sites

Although I used the language "When comparing two folders," I should make it clear that WMatch will compare all subfolders below any two "starting" folders, as well, if that option is selected. In the extreme, you can compare two entire drives, beginning in their root folders (for example, C:\ and D:\).

 

I wrote that the PC Magazine article describing WMatch provides "no visuals," when I meant to write "not many visuals." There are links to three "figures" (illustrations) in the article. In any case, the offer to share screen shots still stands.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...