Site Tools


compare_two_windows_folder_file_lists

compare two folder's file lists (in windows)

The following commands (in PowerShell), can be used to compare two (2) directories file lists (to see what is missing for each other). Note: Added for reference; taken from "Easily Compare Two Folders by Using PowerShell".

steps

Open PowerShell and invoke the following:

$a = Get-ChildItem -Recurse -path <folder1>
$b = Get-ChildItem -Recurse -path <folder2>
Compare-Object -ReferenceObject $a -DifferenceObject $b
compare_two_windows_folder_file_lists.txt ยท Last modified: 2017/03/18 23:22 (external edit)

User Tools