Add Number to Same Name, different extension files

Bulk Rename Utility How-To's

Add Number to Same Name, different extension files

Postby volkytolky » Wed Dec 27, 2023 1:29 pm

Hi,
I try to add numbers to my docs but I can not...
-All files in same folder.
My setup in program

Numbering(10)
-Mode : Prefix
-Start :1
-Pad: 3
-Break: 0
-at: 1
-Increase: 1
-Type: Base 10 Decimal

Inputs
a.png
a.txt
b.png
b.txt
c.png
c.txt

Outputs:(Undesired)
001a.png
002a.txt
003b.png
004b.txt
005c.png
006c.txt

Desired outputs:
001a.png
001a.txt
002b.png
002b.txt
003c.png
003c.txt

same names should get same numbers in all extensions.
volkytolky
 
Posts: 1
Joined: Wed Dec 27, 2023 1:13 pm

Re: Add Number to Same Name, different extension files

Postby therube » Wed Dec 27, 2023 4:44 pm

If you always have corresponding .txt for each .png,
you can do the .txt & .png separately.

If you can pre-filter your inputs such that you do have corresponding pairs (or to exclude those that do not have corresponding pairs), you could use the Rename Pairs feature.


I would think that JavaScript renaming could do it (though not idea, how).
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To