Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionIs there a program to compare one folder and all subfolders to another folder and all subfolders for differences in the files contained therein (presence, absence of files, size and list of filenames)?
Example of usage: I have 100 DLL files from environment 1 and I want to check if any of them are 开发者_如何学Cdifferent (in size and date modified) from the 100 DLL files in environment 2. So I copy and paste all the DLLs in environment 1 into directory A, and all the DLLs in environment 2 into directory B.
I then run my "directory comparison" program on directories A and B and find out that, aha, here is a list of 7 DLLs that have different modified dates and times between the two directories.
EDIT: OS is windows XP
I'm pretty fond of DiffMerge.
Beyond Compare http://www.scootersoftware.com/
The first I can think of is the diff
tool that comes with any Unix-like system.
I prefer using Araxis Merge. It's a very useful tool for file and folder comparison and merging. The only disadvantage it has is that it's non-free.
SyncToy does this as well, if you're looking for something free.
http://www.microsoft.com/downloads/details.aspx?familyid=c26efa36-98e0-4ee9-a7c5-98d0592d8c52&displaylang=en
Python has a nice file and directory comparison module: http://docs.python.org/library/filecmp.html
The program
import filecmp
filecmp.dircmp( 'a', 'b' ).report()
Will tell you a lot. You can then customize this to provide more or less information on the differences.
I like WinMerge, though I don't know how well it would perform with binary files like DLLs.
Synchronize It is created to do exactly this.
http://www.grigsoft.com/wndsync.htm
Synchronize It! 3 details
1: File list displaying results of folders comparison.
(source: grigsoft.com)
2: Start dialog in simple form.
(source: grigsoft.com)
3: Start dialog can be different, if you need full power
(source: grigsoft.com)
It is made by grigsoft (they also make the excellent Compare It! diffing tool).
精彩评论