1 10 2 --> 01 02 10

Post any Bulk Rename Utility support requirements here. Open to all registered users.

1 10 2 --> 01 02 10

Postby Missoula » Thu Mar 12, 2026 11:41 pm

Newbie here using BRU v3.2.0.1

I need to rename

1
10
2

to

01
02
10

I've been at it an hour and I can'r quite figure out how to pad. I see it but I just can't get it to do anything.
Missoula
 
Posts: 5
Joined: Thu Mar 12, 2026 11:03 pm

Re: 1 10 2 --> 01 02 10

Postby TheGhost78 » Sat Mar 14, 2026 11:20 am

Name (2):

Pad numbers
TheGhost78
 
Posts: 257
Joined: Fri Jul 19, 2024 11:25 am

Re: 1 10 2 --> 01 02 10

Postby Missoula » Sun Mar 15, 2026 4:15 pm

Thanks, but I don't have that option. Under Name 2, I have

Keep
Pemove
Fixed
Reverse

Under Numbering 10, I see Pad but I can't figure out how ro make it work.
Missoula
 
Posts: 5
Joined: Thu Mar 12, 2026 11:03 pm

Re: 1 10 2 --> 01 02 10

Postby therube » Mon Mar 16, 2026 4:44 pm

Thanks, but I don't have that option. Under Name 2


Update to the current BRU, 4.1.0.1, & then you will ;-).


---


2:Name
Code: Select all
Pad Numbers


or as a workaround (that kind of works)

10:Numbering
Code: Select all
Mode: Prefix
Start: 0
Incr.: 0
Pad: 1


You would have to exclude '10' from your selection lest you end up with '010'.
therube
 
Posts: 1461
Joined: Mon Jan 18, 2016 6:23 pm

Re: 1 10 2 --> 01 02 10

Postby Missoula » Tue Mar 17, 2026 6:47 am

-- Update to the current BRU

I can't.

Is this the final answer, that my current version won't do it?
Missoula
 
Posts: 5
Joined: Thu Mar 12, 2026 11:03 pm

Re: 1 10 2 --> 01 02 10

Postby Missoula » Tue Mar 17, 2026 7:04 am

I should add that I have hundreds of directories, each with 50 to 300 files, named as above. I was just trying to simplify the request. So it's not just deleteing 10, it would be relocating all 2 and 3 digit files, renaming 1-9, putting back just the 10-99 files, adding another zero, and putting back the 3 digit numbers. This is exactly what I did with Lupas about three times before the tedium caused me come here for help. I still have several hundred, possibly 1,000 plus, directories to go. It would take me many days even if I didn't stop to eat or sleep.

I can see that BRU is vastly more powerful than Lupas so I hope to find a solution here.
Missoula
 
Posts: 5
Joined: Thu Mar 12, 2026 11:03 pm

Re: 1 10 2 --> 01 02 10

Postby therube » Tue Mar 17, 2026 4:43 pm

(
BRU v3.2.0.1


Ah, the last version that supported Windows XP.

-

Lupas still has its place, IMO.

I have any number of directories where I've included custom MyOptions.INI within in order to rename all files in that directory in a specific manner.
)
therube
 
Posts: 1461
Joined: Mon Jan 18, 2016 6:23 pm

Re: 1 10 2 --> 01 02 10

Postby therube » Tue Mar 17, 2026 5:11 pm

If ordering did not matter (but I suspect it would), then you could use,

2:Name -> Remove
10:Numbering, & just set the Start, Incr., & Pad as needed.


Maybe something could be done with JavaScript renaming (in particular if the sort order could be controlled, could be set to a natural sort [such that it would be 1 2 3 ... 10, rather then 1 10 11 ... 2 3])?


Actually, Display Options -> Sorting - Logical Sorting already exists.
So if the file names are only numbers..., you can do that now.

Set Logical Sorting, 10:Numbering & just set what you need in there.
therube
 
Posts: 1461
Joined: Mon Jan 18, 2016 6:23 pm

Re: 1 10 2 --> 01 02 10

Postby Bog_Standard » Tue Mar 17, 2026 6:03 pm

If the filename you want to pad always starts with one digit followed by a space and you want to pad to 2 digits try:
Regex (1)
Code: Select all
Match (^\d )(.*)
Replace 0\1\2

If the filename you want to pad always starts with two digits followed by a space and you want to pad to three digits try:
Regex (1)
Code: Select all
Match (^\d\d )(.*)
Replace 0\1\2

I do not have your version to check this so proceed with caution, ie do a trial run.
Regards...
Bog_Standard
 
Posts: 2
Joined: Fri Aug 22, 2025 8:53 pm

Pad digit-only names into 2-digits

Postby Luuk » Tue Mar 17, 2026 7:18 pm

Without having the paid version and javascript, I would probably just conduct 2 separate renames...

First use a Filters(12) "Mask" like ^\d+\.[^.]+$ with the checkmark inside for "RegEx" to refresh.
This presents your digit-only filenames, and then just use Add(7) to prefix a bunch of zeroes.

After that rename adds too many zeroes, then just remove your Add(7) prefix.
And use RegEx(1) with a "Match" and "Replace" like...
^0*(\d\d)$
\1

This removes any extra leading zeroes.

If its something you need often, type all of these settings in before saving into a .bru-file.
This way its easier to conduct the 2nd-rename by just removing the Add(7) checkmark.
Luuk
 
Posts: 846
Joined: Fri Feb 21, 2020 10:58 pm

Re: 1 10 2 --> 01 02 10

Postby Missoula » Tue Mar 17, 2026 8:21 pm

Ah, several replies. Thanks for your time, therube, Bog_Standard and Luuk. Please bear with me as I consolidate my responses to all of you in this one post.

> the last version that supported Windows XP

Busted. Yes, I'm stuck at XP for the duration.

> Lupas still has its place, IMO.

Agreed.

> custom MyOptions.INI

I don't know what that means. Are you suggesting it as something I should try?

> If ordering did not matter (but I suspect it would)

Yes, it matters absolutely. These scanned book pages.

> JavaScript renaming

Again, I don't know what that means.

> Display Options -> Sorting - Logical Sorting already exists.

I'm trying to find Display Options. Control Panel/Display doesn't seem to have it, nor does Display Properties. But I think it's moot since each directory, once the files are named properly, will need to be rarred and have the extension changed to .cbr for viewing in CDisplay.

> Set Logical Sorting

I seem to remember seeing a Logical Sorting option many years ago but again, I can't find it now. Which of these is Microsoft's idea of "logical":
1 10 2 (alpha)
or
1 2 10 (actual numeric value) ?

At any rate, I've been set on Alpha since the Stone Age and moreover, so is CDisplay. I really need the 01 02 10 rename.

> If the filename you want to pad always starts with one digit followed by a space

No filenames have a space. All of them are 1, 2, or 3 numeric digits.

> do a trial run.

Naturally. I have one copied directory that I've been using to work with BRU.

> I would probably just conduct 2 separate renames

That's what I've been doing with Lupas, but it requires moving files in and out of the working directory between renames. It seems from what you're saying that BRU will let me do one rename, then another. Done in a few clicks. I could cheerfully go along with that, if only I can figure out Filters(12). I did exactly as you said, with ^\d+\.[^.]+$ as the mask, the RegEx box ticked, and Add(7) Preview set to 00. Then, in the lower right, both Preview and Rename return "There are no selected items that need renaming."

I appreciate your time, all of you.
Missoula
 
Posts: 5
Joined: Thu Mar 12, 2026 11:03 pm

Pad single-digit names into 2-digits

Postby Luuk » Tue Mar 17, 2026 8:23 pm

Many apologies on my 1st-post, its over-complicated because I thought this was 3-digit padding.
So then after realizing this, I just quickly adapted the post, to instead conduct 2-digit padding!
All you really need is 1-rename...

A Filters(12) "Mask" like ^\d\.[^.]+$ then put the checkmark inside for "RegEx" to refresh.
This presents your single-digit filenames, so then just use Add(7) to prefix one zero.

The 1st-method was better for 3-or-more padding (just add more \d's) for people with old versions.
Which I would definitely recommend anyway, since you seem to also have 3-digit names??
Luuk
 
Posts: 846
Joined: Fri Feb 21, 2020 10:58 pm

File selection

Postby Luuk » Tue Mar 17, 2026 8:35 pm

Your names must 1st be selected, before any renaming will conduct.
For myself, I just use "Display Options, List, Auto-Select Entries", but you can always Ctrl-A, etc.
Luuk
 
Posts: 846
Joined: Fri Feb 21, 2020 10:58 pm


Return to BRU Support


cron