Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Moving, renaming & copying folder trees

$
0
0

I have a scenario where we want to roll back certain folders on a drive that contain a common text file while preserving the folders & sub folders that contain those test files by moving them to a different location & prepending OLD_ to the foldernames down the folder structure.

We have mounted a earlier .vhd backup of the drive which we want use to replace the folder structure we just moved in the previous paragraph.

All files under this folder tree need to get moved in the first part & copied in the second part.

Any ideas on how I would do this in PowerShell?


Viewing all articles
Browse latest Browse all 13067