tags:

views:

332

answers:

1

Just thought it would be nice to have one but my PS skills are not up to task. Anybody can share theirs?

+4  A: 

Easy enough to do something simple:

$d1 = get-childitem -path $dir1 -recurse
$d2 = get-childitem -path $dir2 -recurse
compare-object $d1 $d2

More sophistication required depending on the definition of difference.

Richard
This works... Is it possible to include relative path into comparision results, as well as some output while this is processing?
Sergey Aldoukhov
Figued it out - add -name to each of get-childitem, you'll get necessary results faster and you'll see the progress
Sergey Aldoukhov
'-name' is a new one for me :-), I'll have to remember that.
Richard