I am doing some validation on a file/folder copy and want to use Compare-Object to validate the copy. Using the script listed below I see no result from my Compare-Object. Am I missing something? This is v2 by the way.
md .\difftest1, .\difftest2 dir > .\difftest1\test1.txt dir > .\difftest1\test2.txt copy .\difftest1\* .\difftest2 $dir1 = Get-ChildItem .\difftest1 -Recurse $dir2 = Get-ChildItem .\difftest2 -Recurse Compare-Object $dir1 $dir2