Does a program exist for checking two similar directories for file differences? [closed]

StackOverflow https://stackoverflow.com/questions/2526419

  •  22-09-2019
  •  | 
  •  

Question

Is 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 different (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

Was it helpful?

Solution

I'm pretty fond of DiffMerge.

OTHER TIPS

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.

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.
alt text
(source: grigsoft.com)

2: Start dialog in simple form.
alt text
(source: grigsoft.com)

3: Start dialog can be different, if you need full power
alt text
(source: grigsoft.com)

It is made by grigsoft (they also make the excellent Compare It! diffing tool).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top