I have files nested within multiple sub-folders. I want to move these files, one folder up the folder structure and rename the files as per its new parent folder. I will need this to be automated with a script.
- Find Root folder
- Get contents of Subfolder of Subfolder files.
- Move files to its Parent folder (aka ‘Attachments’ folder)
- Rename files to with its current Parent folder name.
- Delete empty Subfolder
- Loop above action of Root folder folders until complete.
Example folder structure
I’m assuming this may require to Automate with a script but I have no idea how to do it. Can anyone help me?