Rename multiple folders into the file inside it

Advanced Renamer forum
#1 : 04/06-20 17:50
Zapp
Posts: 2
Hi, I have to rename a lot of folders with 1 file inside them to the name of the file.

Example:

from this:

folder1/file01.txt
folder2/file02.txt
folder3/file03.txt

to:

file01/file01.txt
file02/file02.txt
file03/file03.txt

I hope this is enough information, I'm having a little bit of trouble putting it into words
Thanks
#2 : 04/06-20 18:22
David Lee
Posts: 1125
I don't think that it's possible to do it the way you ask.

You will have to do it the other way round and move the files into new folders with the same names as the files.

Move all your existing folders into a new folder then drag it into the the list and select "Add the files in the folders" and "Include subfolders".

Then select batch mode: "Move"
Output folder: "pathname\<Name>"
where pathname is the path to the folder where you want your new folders to be created.

Run the batch - you don't need to add any renaming methods.

Finally delete the folder containing the original folders (which will now all be empty).
#3 : 04/06-20 18:46
Zapp
Posts: 2
Reply to #2: Thanks a lot, you really saved me hours of horrible work. This method worked perfectly.
I had to do this to over 9k folders. Also thanks for your quick response.