BATCH FOLDER PROBLEM

Advanced Renamer forum
#1 : 02/02-23 17:24
Joy
Joy
Posts: 6
I want to batch rename folders to a single folder.

Example.

FOLDER_NAME_A rename to FOLDER_NAME
FOLDER_NAME_B rename to FOLDER_NAME
FOLDER_NAME_C rename to FOLDER_NAME

I tried to use RENAME with <Subst:1:11>

BUT I CAME UP WITH RED ALERTS (Possibility of Multiple Files with the same name)
so I turned on file collision rule and append number but the result is this:

FOLDER_NAME_A rename to FOLDER_NAME_001
FOLDER_NAME_B rename to FOLDER_NAME_002
FOLDER_NAME_C rename to FOLDER_NAME_003

Please help. Thanks.





02/02-23 17:24
#2 : 07/02-23 15:27
David Lee
David Lee
Posts: 1125
"Rename" does just what it says - ie it renames EXISTING folders. If you want to combine the contents of folders then you need to load the FILES in the folders into the List and use either the MOVE batch mode to move files into new folders or else (more flexible) a Script method (in the RENAME batch mode) to define a new path (ie item.newPath). Either way new folders will be created as required, if they do not already exist. Existing folders will not be deleted so you will probably have some cleaning up to do to remove empty folders.


07/02-23 15:27 - edited 07/02-23 15:28