Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to compare 2 folder trees on windows? [closed]

Tags:

comparison

People also ask

How do I compare two directory trees in windows?

Click on the “Select Files or Folders” tab in the far left, to start a new comparison. Each comparison you run opens in a new tab. To start a new comparison, click on the “Select Files or Folders” tab in the far left, change the targets and click “Compare” again.

Does windows have a file comparison tool?

On Windows 10, "fc" is a command-line tool that comes built-in to the system, and it allows you to compare two similar files to determine how they changed over time.

Can Treesize compare folders?

Yes, Treesize can compare folders and files. It is a tool mainly used to see storage space management.


If you can use a GUI tool, the best I tried is WinMerge - open source.

If not, then diff is your friend.


Beyond compare allows you to do that and much more.

It's one of those tools I can't live without.
Take a look here for a reference on the scripting options


You could also execute tree > tree.txt in both folders and then diff both tree.txt files with any file based diff tool (git diff).


As I am reluctant to install new programs into my machine, this PowerShell script (from Hey, Scripting Guy! Blog) helped me solve my problem. I only modified the path to suit my case:

$fso = Get-ChildItem -Recurse -path F:\songs
$fsoBU = Get-ChildItem -Recurse -path D:\songs
Compare-Object -ReferenceObject $fso -DifferenceObject $fsoBU

Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!