I am using Powershell v 2.0. and copying files and directories from one location to another. I am using a string[] to filter out file types and also need to filter out a dir
I use this to list files under a root but not include the directories
$files = gci 'C:\' -Recurse | Where-Object{!($_.PSIsContainer)}