Silently merge folders rather than rename with _1 on the end

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Silently merge folders rather than rename with _1 on the end

Postby TheGhost78 » Sun Dec 07, 2025 3:12 am

Could you have the option to silently merge folders with the same name, which is the default behaviour in Windows, rather than add "_1" on the end of the second instance of that folder? For example, if I am folderising files, there is usually already a folder with that name.
TheGhost78
 
Posts: 246
Joined: Fri Jul 19, 2024 11:25 am

Re: Silently merge folders rather than rename with _1 on the end

Postby TheGhost78 » Sun Dec 07, 2025 3:13 am

Don't do it for files, just folders!
TheGhost78
 
Posts: 246
Joined: Fri Jul 19, 2024 11:25 am

Re: Silently merge folders rather than rename with _1 on the end

Postby Admin » Mon Dec 08, 2025 5:16 am

Hi, are you folderising also subfolders, which are then renamed with _1 ?
Admin
Site Admin
 
Posts: 3120
Joined: Tue Mar 08, 2005 8:39 pm

Re: Silently merge folders rather than rename with _1 on the end

Postby TheGhost78 » Mon Dec 08, 2025 11:48 am

Yes. So, for example, I have a parent folder named "2023" which contains a subfolder called "2023-12", which in turn contains its own subfolder called "2023-12-23".
I add some more pictures on the parent folder level, 2023; I use a saved .bru to copy the first few characters of the pictures' filenames up to the first space and use them as the new folder name, moving the files into the newly created folder "2023-12-23". I use a second .bru to then move the newly created subfolder, 2023-12-23, into the subfolder 2023-12. However, because 2023-12 already contains 2023-12-23 then it adds the new one as "2023-12-23_1" instead of merging.

First .bru for files, RegEx (1):
^(\d{4}-\d{2}-\d{2}) (\d{2}.\d{2}.\d{2}) - (.+)
\1\\\1 \2 - \3

Second .bru for folders, RegEx (1):
^(\d{4})-(\d{2})-(\d{2})
\1-\2\\\1-\2-\3
TheGhost78
 
Posts: 246
Joined: Fri Jul 19, 2024 11:25 am

Re: Silently merge folders rather than rename with _1 on the end

Postby TheGhost78 » Mon Dec 08, 2025 12:00 pm

If I do this to the files instead, at the parent folder level, and move the files directly to the sub-subfolder then it doesn't add the _1 on the 2023-12-23 folder.

RegEx (1):
^(\d{4})-(\d{2})-(\d{2}) (\d{2}.\d{2}.\d{2}) - (.+)
\1-\2\\\1-\2-\3\\\1-\2-\3 \4 - \5
TheGhost78
 
Posts: 246
Joined: Fri Jul 19, 2024 11:25 am

Re: Silently merge folders rather than rename with _1 on the end

Postby TheGhost78 » Mon Dec 08, 2025 12:10 pm

If there are duplicate filenames, then the newly moved files should still add "_1" on the end, which is the current behaviour.
TheGhost78
 
Posts: 246
Joined: Fri Jul 19, 2024 11:25 am


Return to Suggestions