Link to home
Start Free TrialLog in
Avatar of N00b2015
N00b2015

asked on

Copy items in a folder structure then put them back.

I was wondering if there was a way in Powershell to remove all files in multiple folder structures such as C:\NewFolder\Folder\Item.docx , placed in a specific location then put them back in its original location?

I need to amend the document properties of multiple documents. I have a script for this in place. However, the location of these documents are in multiple sub folders. So in order to run the script, i would need to extract the items first, run the script, then (with your help with another script) have them placed back into it's original folder structures.

Is this in anyway possible??
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of N00b2015
N00b2015

ASKER

Bill as you can see from my username, i am a Noob!! So i really appreciate this, thank you. I didn't realise the -recurse  option meant it would drill down to subfolders also!
No worries about being new here and asking basic questions, that's how we all learned.  Welcome to Experts Exchange.

I am working the prior question, but haven't gotten it quite nailed down yet (I'm still learning more Powershell as I go too...).

~bp
Thanks Bill!! Really appreciate it.