Smart Numbering Macro

Bulk Rename Utility How-To's

Smart Numbering Macro

Postby MS1986 » Tue Jan 28, 2020 9:40 am

Hello,

I hope someone could help me with an issue or trouble I am having. I am an advanced user in Bulk Rename Utility, which I have been using for the past years, but I found something that I can't manage. I have like 150 folders with 12.000 files. I use the filter to select all the files without the folders. The files are correctly named, but the numering type is at Windows style, that meaning (1), (2), (3)... (14), (15), (16)... (101), (102), (103)... Also, the files of every folder has it's own name, meaning that the files are well named but different naming betwen folders. There are like "collections" of 60-80 files in average for 150 folders (the 12.000 files). I hope I am explaining it well. :)

The thing is: I would like to change the windows numbering for something moren "standarized", like "(1)" to "001" in order to not having any issues with the priority of the number when there are units, hundreds or tens in the numbering.

Changing it mannually by the "replacing" item of BRU is absolutely tedious, and I am dedicating half a minute for every number, which is to slow for me. There is a macro created, or something, to replace several "searches", at once?

Anyone smarter who could give me a faster and cleaver solution?

Many thanks!
MS1986
 
Posts: 6
Joined: Fri Dec 15, 2017 11:47 am

Re: Smart Numbering Macro

Postby MS1986 » Tue Jan 28, 2020 9:44 am

CLEVER solution.... LOL
MS1986
 
Posts: 6
Joined: Fri Dec 15, 2017 11:47 am

Re: Smart Numbering Macro

Postby therube » Tue Jan 28, 2020 2:19 pm

Are you wanting to rename the folder names or the file names (or both)?

Some specific examples of the names?
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Smart Numbering Macro

Postby bru » Sat Feb 01, 2020 6:21 am

Best I can offer is a commandline solution, I use something similiar in a batch.
It renames as below, if its is what you're looking for:
Code: Select all
Sample             Result
abc(1).txt          abc001.txt
abc(2).txt          abc002.txt
abc(03).txt        abc003.txt
abc(004).txt      abc004.txt
abc(12).txt        abc012.txt
abc(123).txt      abc123.txt
abc(1234).txt    abc1234.txt
abc(12345).txt  abc12345.txt

brc32 /Pattern:*).* /Recursive /NoFolders /NoDup /Regexp:"(.*)\((\d+)\)$:\1|00\2" /Regexp:"(.*)[|]0*(\d{3,})$:\1\2" /Execute

If you have brc32, to preview renames beforehand, remove /Execute and run it in any sub-folder.
To create a preview-file, run it in the top-folder, replacing /Execute with >PreviewMe.txt
To rename all files as-above in all sub-folders, run it as-posted in the top folder.
bru
 
Posts: 62
Joined: Wed Jan 31, 2018 7:35 pm


Return to How-To