Moving files up a level

I have a group of files with the following (silly) structure:

AA/f01/f01.txt
AA/f02/f02.txt
AA/f03/f03.txt

AB/f11/f11.txt
AB/f12/f12.txt
AB/f13/f13.txt

AC/f21/f21.txt
AC/f22/f22.txt
AC/f23/f23.txt

I would like to move around these files so that it has this structure:

AA/f01.txt
AA/f02.txt
AA/f03.txt

AB/f11.txt
AB/f12.txt
AB/f13.txt

AC/f21.txt
AC/f22.txt
AC/f23.txt

In other words I would like to move each file up one level and then delete the empty folders.
(The file names are not regular like this. These file names were for illustration only.)
Also, generally I have more than just 3 subfolders in each top level folder.

If I had only these 3 top level folders (AA, AB, AC), of course I could easily do this manually, perhaps
using a flat view or a find panel 3 times to move the files up one level. But in fact instead of
3 top level folders I have about 5000, so dealing with each folder one at a time would be prohibitively
time consuming.

Is there any way to use the Dopus rename panel (or any other Dopus tool) that could automate this kind of file movement?

Thanks in advance for any suggestions you may have.

~Paul

You could try this one in a test folder

@set ChildPath={sourcepath$|noterm}
Copy MOVE * TO ..
Go ..
Delete {$ChildPath} FAILNOTEMPTY NORECYCLE

Found here

Yes, a rename script can do this. You would still need to delete the empty folders in a second step.

A normal script could be a one-step solution, but it'd lack the preview of the Advanced Renamer.

Either way, I'd create a test mirror of the folders, e.g. with this script:


Similar task here:


A linked account is good forum etiquette.