Created
July 2, 2015 11:35
-
-
Save codingawayy/f09803834dd133d7b215 to your computer and use it in GitHub Desktop.
List identical files in 2 folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$one = Get-ChildItem "C:\x" -Recurse -Include @("*.html", "*.js") | |
$two = Get-ChildItem "C:\y" -Recurse -Include @("*.html", "*.js") | |
Compare-Object -ReferenceObject $one -DifferenceObject $two -Property Name,Length -ExcludeDifferent -IncludeEqual |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment