Jump to content
fajw

comparing folders

Recommended Posts

I've got a pair of folders that have lots of folders and files in them. They should be the same, but they're not. Is there a quick and easy way to compare them and see what the difference is?

Share this post


Link to post
Share on other sites

PowerShell:

 

$folder1 = gci "C:\folder1"
$folder2 = gci "C:\folder2"
Compare-Object $folder1 $folder2

This will tell you which files/folders exist on one side but not the other. If you need to check the contents of each file, more effort will be required.

Share this post


Link to post
Share on other sites

I tried that and it didn't spit out anything. Any ideas?

 

Thanks.

Share this post


Link to post
Share on other sites

I tried that and it didn't spit out anything. Any ideas?

 

Thanks.

 

What OS did you enter that command on?

Share this post


Link to post
Share on other sites

Winmerge perhaps?

http://winmerge.org/

I tried that before I posted; I couldn't get it to do what I wanted, but I'll try it again.

 

I tried that and it didn't spit out anything. Any ideas?

 

Thanks.

 

What OS did you enter that command on?

 

Windows 7 Ultimate SP1 x64

 

Could the issue be that one of the folders is accessed on another machine via the LAN?

Share this post


Link to post
Share on other sites

Although it took a very long time, WinMerge did the trick. I don't know why I couldn't get it working before.

Share this post


Link to post
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

×