Rename using folder name and numbering...

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

Rename using folder name and numbering...

Postby soulcrusher » Thu Mar 06, 2014 4:55 am

Hi,

I migrated from Windows XP to 8.1. Unfortunately, I forgot to save my .bru files. Now I can't remember how I had it set up. Previously, I was renaming files using the name of the folder they resided in. I used Regex, but I can't remember the expression I used to match the whole filename - so that would be nice if someone could remind me what expression I should use (I have tried various expressions but I can't figure out the correct one). The other thing is - although I don't have an expression in the Match field I still can rename using numbering and append folder name, filtering for *.jp*g files - so, just to be clear, this is what it looks like:
RegEx (1) - Match field blank (although I had an expression in this field on my XP machine); Replace field contains new name
Append Folder Name (9) - Name = Suffix; Levels = 1
Numbering (10) - Mode = Suffix; Start = 1; Increment = 1; Pad = 4; Type = Base 10
Selections (12) - Filter = *.jp*g; Files checkbox is ticked; Subfolders checkbox is ticked

Unfortunately, this does not work quite as expected - although it will replace the name with what I ask it to and add the folder name and numbering, the numbering is not done as expected.

Example:
Two folders - one named Sanibel - the other named Venice. I want to replace the current filenames with "GreenHeron" and use the folder name and numbering.
The files in the Sanibel folder should be renamed as follows:
GreenHeronSanibel0001.jpg
GreenHeronSanibel0002.jpg
GreenHeronSanibel0003.jpg
Etc....
The files in the Venice folder should be renamed as follows:
GreenHeronVenice0001.jpg
GreenHeronVenice0002.jpg
GreenHeronVenice0003.jpg
Etc...

But what actually happens is this:

GreenHeronSanibel0001.jpg
GreenHeronSanibel0002.jpg
GreenHeronSanibel0003.jpg
GreenHeronSanibel0004.jpg
GreenHeronSanibel0005.jpg
GreenHeronVenice0006.jpg
GreenHeronVenice0007.jpg
GreenHeronVenice0008.jpg
GreenHeronVenice0009.jpg
GreenHeronVenice0010.jpg
GreenHeronVenice0011.jpg

BRU just continues the numbering from where it left off in the previous folder!

So, if someone could suggest solutions to these problems, I would be extremely grateful:

1) RegEx to use to match whole filename
2) Numbering problem above

I had this working correctly in XP so I know it can be done - I just don't remember how I did it.

Thanks very much for any help - and once again thanks for sharing this excellent software!

Jim Hamilton
soulcrusher
 
Posts: 3
Joined: Mon Sep 03, 2012 10:08 pm

Re: Rename using folder name and numbering...

Postby truth » Thu Mar 06, 2014 6:53 am

10Folder=Checked should fix the numbering problem.
Remember to sort by SubDir if you run into more rename problems.

Regex cannot affect which filenames are 10Numbered / 9DirNameAppended.
That can only be controlled by file-selections in BRU's right-pane.

To regex-replace AnyFileName with GreenHeron, 1Regex match/replace:
.*
GreenHeron

The .* match isnt necessary, but it is the expression for Any#Chars
You could also use #2File=Remove and #2Name=GreenHeron
truth
 
Posts: 221
Joined: Tue Jun 25, 2013 3:39 am
Location: Earth, OrionArm, MilkyWay

Re: Rename using folder name and numbering...

Postby soulcrusher » Thu Mar 06, 2014 6:30 pm

That did it, truth,

Thanks very much for your help! And I apologize for not looking more carefully at the help file where it describes the function of the Folder (10) checkbox.

Thanks again.
soulcrusher
 
Posts: 3
Joined: Mon Sep 03, 2012 10:08 pm


Return to BRU Support