Posts Tagged ‘compare’

Free way to compare two folders in Windows

Friday, November 14th, 2008

Here’s my reasonably quick and free way to compare the files in a folder.  I’ve assumed a bit of computer knowledge, mostly, because I don’t have time to fill in the many little details.

Get a copy of WinMerge from Sourceforge – it’s a tool often used by programmers to see differences in text files.

Open a command window

– e.g. start –> run –> “cmd”

Create a text file with the names, sizes, and date stamps from folder “A”

– e.g. dir c:\the_documents\*.* > this_computer.txt

Do the same for folder “B”

– e.g. dir \\that_computer\c$\the_documents\*.* > that_computer.txt

Open both files in WinMerge.

– the differences in the two “dir” outputs will be higlighted for you.

Now if you’re still not sure if the files are the same or now, e.g. if the files are the same size but have different date stamps, then search for a utility called “md5sums”.  This will create md5 hashes of all files in a folder.

e.g. c:\tools\md5sums -n “\\distribution\c$\program files\cybex\*.*” > distrib2.txt

That’s it.  It’s been a couple weeks since the last blog post. We’ve been busy at Perceptus.  Our next project is going live soon – retailers with multiple locations in BC and Alberta, watch this space.  Our next product is geared for you!