Skip to content

Instantly share code, notes, and snippets.

@aadennis
Created June 11, 2017 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aadennis/cc9d2615e82bca93005e4aa6d2090551 to your computer and use it in GitHub Desktop.
Save aadennis/cc9d2615e82bca93005e4aa6d2090551 to your computer and use it in GitHub Desktop.
# Compare a reference folder and children, with a copy of that reference
$refPath = "G:\VideosCollection\TheRest\MP4"
$copyPath = "e:\set3"
$refSet = Get-ChildItem -Recurse -path $refPath
$copySet = Get-ChildItem -Recurse -path $copyPath
Compare-Object -ReferenceObject $refSet -DifferenceObject $copySet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment