You are over-thinking this. And yes, I would use robocopy to do it.
Param([string]$dirA, [string]$dirB) $resultA = dir $dirA -recurse $resultB = dir $dirB -recurse $parsedA = @() $parsedB = @() $resultA |% { $f = $_.FullName.Substring( $dirA.Length ); $parsedA += $f; } $resultB |% { $f = $_.FullName.Substring( $dirB.Length ); $parsedB += $f; } $differences = Compare-Object $parsedA $parsedB ### deal with your results -----Original Message----- From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On Behalf Of Michael Leone Sent: Wednesday, August 7, 2013 2:19 PM To: powershell@lists.myitforum.com Subject: Re: [powershell] Confused about PSDrive On Wed, Aug 7, 2013 at 2:12 PM, Webster <webs...@carlwebster.com> wrote: > Aren't there utilities that exist that do what you need done? There are probably utilities that exist to do any and every thing. :-) I wanted to do this via script. You always learn something that way. And this shouldn't be too big a job where doing it by script is too ruinous in terms of time and effort. So if New-PSDrive doesn't behave as I would want it to, what would? What would I do in PS to map a drive letter, and make sure the results of a get-childitem include the drive letter that I've mapped? ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1 ================================================ Did you know you can also post and find answers on PowerShell in the forums? http://www.myitforum.com/forums/default.asp?catApp=1