newbie, issue with numbering

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

newbie, issue with numbering

Postby anacreon » Wed Oct 01, 2014 5:17 pm

Hi all,

I am completely new to this, searched in the forum but did not find exactly what I was looking for and would appreciate some insight.

I have mixed name formats in a folder:
ABC_001
ABC_01a
ABC_01b
etc...

I need to rename them to be consistent:
ABC_1
ABC_2
ABC_3
etc.
while keeping the initial order though. Any ideas?

Thank you so much in advance!!
anacreon
 
Posts: 2
Joined: Wed Oct 01, 2014 5:04 pm

Re: newbie, issue with numbering

Postby anacreon » Mon Oct 06, 2014 11:02 am

Please if anyone can help with this, I would appreciate it.

Thank you.
anacreon
 
Posts: 2
Joined: Wed Oct 01, 2014 5:04 pm

Increase numbering on same name only

Postby Stefan » Wed Oct 08, 2014 6:14 am

anacreon wrote:Hi all,

I am completely new to this, searched in the forum but did not find exactly what I was looking for and would appreciate some insight.

I have mixed name formats in a folder:
ABC_001
ABC_01a
ABC_01b
etc...

I need to rename them to be consistent:
ABC_1
ABC_2
ABC_3
etc.
while keeping the initial order though. Any ideas?

Thank you so much in advance!!



For such tasks you will need to use a script, where you can say:
"as long as the first name part is the same, increase the count, else set back to zero"

Something like this JavaScript code:

-----------------8<---------------------- CODE:

if(index < 1) vLastName='xxx';
//will match (A151946_) and (101_12) out of "A151946_101_12.jpg"
vNewName= item.name.replace(/(.+?_).+/, '$1');
if(vNewName!=vLastName) vCounter=0;
vLastName=vNewName;
vCounter++; vCounter=('000'+vCounter).slice(-2);
return vNewName+vCounter;

/CODE ----------------->8----------------------
http://www.advancedrenamer.com/forum_thread?forum_id=1891

FROM:
A151946_101_12.jpg
A151946_201_12.jpg
A151946_A01_12.jpg
F1298393_501_83.jpg
F1298393_F01_83.jpg
F1298393_E01_83.jpg

TO:
A151946_01.jpg
A151946_02.jpg
A151946_03.jpg
F1298393_01.jpg
F1298393_02.jpg
F1298393_03.jpg

 
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU

Re: newbie, issue with numbering

Postby asalspammer1 » Wed Feb 18, 2015 9:48 am

I've just downloaded and installed version 2.7.1.3 x64 on a Windows 7 system, and it looks like a fantastic utility. I've been trying to add MP3 tags to my filenames by entering %r, %l, %t or %t in the Prefix field of the "Add" section (7), but none of the associated tag values are being picked up. The MP3 files have been tagged and verified using Tag&Rename. I've probably made an obvious mistake, but can't think what it can be.



_____________________
aliiiii
asalspammer1
 
Posts: 1
Joined: Wed Feb 18, 2015 9:36 am


Return to BRU Support