Replicate folder structure and move files based on Extension
Posted on 2014-03-25
I have thousands of subfolders I need to duplicate in a new location, however, I need to keep the folders structure and any files that aren't being moved in the old location. I then need to loop through each subfolder and if any of the extensions are matched, then move those files to the same subfolder in the new location.
Parent Folder - c:\Folder\Data\subfolders
New Folder - d:\ArchiveFolder\ArchiveData\subfolders
.l03, .l04, .l05, .l06, .l07, .l08, .l09, .l10
I'm a powershell newbie, so be gentle. :)