I am writing a simple DLL copying script to help my dev team in setting up their local environments. I check the build devdrop folder and get a list of DLL files. I then look at
$newFiles = @(Get-ChildItem -recurse -path "$drop\$latest\ship" -name) $oldFiles = @(Get-ChildItem -recurse -path $bin -name) $files = Compare-Object -ReferenceObject $newFiles -DifferenceObject $oldFiles -IncludeEqual -PassThru