How to rename a group of numbered files?

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

How to rename a group of numbered files?

Postby Betto » Sun Feb 08, 2009 8:32 pm

Hi everybody,this is my problem:
I've about 130 files named:
Pag_001.jpg
Pag_002.jpg
...
Pag_130.jpg


I would add the prefix Cap1_ from Pag_001.jpg to Page_019.jpg,
then prefix Cap2_ from Pag_020.jpg to Page_034.jpg and so on...

How can I do this with BRC32.exe through command line?

Thanks!
Betto
 
Posts: 3
Joined: Sun Feb 08, 2009 8:22 pm

Re: How to rename a group of numbered files?

Postby Betto » Thu Feb 12, 2009 7:32 pm

No suggestions?
Betto
 
Posts: 3
Joined: Sun Feb 08, 2009 8:22 pm

Re: How to rename a group of numbered files?

Postby GMA » Thu Feb 12, 2009 10:32 pm

Hi, Betto:
I suposse you're gonna have to do something like this (create a BAT, paste the following lines and edit the corresponding paths):

Code: Select all
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_00)([0-9]):Cap1_\1\2 /EXECUTE
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_01)([0-9]):Cap1_\1\2 /EXECUTE
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_02)([0-9]):Cap2_\1\2 /EXECUTE
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_03)([0,1,2,3,4]):Cap2_\1\2 /EXECUTE

For example, if the following was adding "Cap3_" to files from "Pag_035" to "Pag_057", the next lines will be:

Code: Select all
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_03)([5,6,7,8,9]):Cap3_\1\2 /EXECUTE
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_04)([0-9]):Cap3_\1\2 /EXECUTE
"[Path to BRC]\BRC32.exe" /DIR:"Path to your files" /REGEXP:(Pag_05)([0,1,2,3,4,5,6,7]):Cap3_\1\2 /EXECUTE

Cheers,

Gabriel.
GMA
 
Posts: 91
Joined: Sun Dec 02, 2007 1:30 pm
Location: Argentina

Re: How to rename a group of numbered files?

Postby Betto » Fri Feb 13, 2009 6:43 pm

Thanks!It works!
I've solved the problem using ms excel before reading your post.
Betto
 
Posts: 3
Joined: Sun Feb 08, 2009 8:22 pm


Return to BRC Support