Compare file counts per directory in PowerShell

dir|?{$_.psiscontainer}| %{"{1,20} {0,4} {2,4}" -F (get-childitem -rec $_).count,$_.name,(get-childitem -rec ("Z:\somedir\" + $_.name)).count }

Leave a Reply

You must be logged in to post a comment.