Concatenate folder and subfolder strings

Hi all,
I was curious if the following is possible in Advanced Renamer:
I have a list of root folders (eg. "000", "001", ...) that each contain individual subfolders (eg. "ABC", "DEF", ...). Can I rename the root folders so that they are appended with the subfolder names (eg. "000ABC", "001DEF", ...)?
Thanks,
Paul
Reply to #1:
Hi Paul,

That is one thing that I don't think Aren can do.

You'd best use one of: a PowerShell script, a bash script, or a Python program -- depending on what you are most comfortable with.

If you provide an exact before and after file trees as an example, I can help with a script.

Regards,
Randy

PS. Why would you wish to rename in such a manner?! ;)
Reply to #1:
You can't use a value from a subfolder name, only the opposite - a name from a parent folder.

It is kinda odd to rename in this way, but again, I can see why you might end up in a situation where you want this. I might add a tag to do this in an upcoming version.
Reply to #3:

Hi guys,

While you can't use a subfolder name that way, a temporary workaround can be to load the files in the target folders and use move or copy mode to move or copy them to a new folder made from the names of the two folders ( \c:\oldroot\<foldername:2><foldername:1>\). You still have to do some cleanup, dealing with the old folder structure, but it works well. Just a thought...

Best
DF
Hi guys,

Thank you for your rapid responses! The idea to rename the subfolders/inserting the root folder strings (via <Dirname:1>) did indeed work; furthermore, I am so glad that Advanced Renamer allows to separately select root folders and subfolders. If I may suggest one more feature, it would be the possibility to specify the subfolder level(s) in the "Add folder" dialogue.

Best,
Paul