Renaming files with same name but different extension

Post any general comments regarding Bulk Rename Utility here. Open to all registered users.

Renaming files with same name but different extension

Postby Cartman70 » Fri Jul 20, 2018 5:43 pm

As a newbie, I've worked out how to rename my files into a YDM & sequence number. The query is, can I use the boxes to rename files with the same name but a different extension ?

For example, I have a folder containing P1350530JPG & P1350530.RW2 . Currently, I get the result 2008-04-01_001.JPG & 2008-04-01_RW2 - what I want is 2008-04-01_001.JPG & 2008-04-01_001.RW2

I realise I could put the JPGs into a separate file & do it that way but I'd like to keep the files together to highlight any problems, such as a JPG without its RW2 which would obviously mess up the sequence.

Any suggestions very welcome.
Cartman70
 
Posts: 4
Joined: Fri Jul 20, 2018 5:18 pm

Re: Renaming files with same name but different extension

Postby therube » Fri Jul 20, 2018 6:58 pm

Code: Select all
exist:   P1350530JPG        & P1350530.RW2
renamed: 2008-04-01_001.JPG & 2008-04-01_RW2
wanted:  2008-04-01_001.JPG & 2008-04-01_001.RW2

Not quite following?
P1350530JPG has no extension, yet renamed it does.
P1350530.RW2 has an extension, yet renamed it does not, instead, _.
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Renaming files with same name but different extension

Postby Cartman70 » Fri Jul 20, 2018 7:47 pm

Sorry, operator error

In the same folder I currently have P1350530.JPG & P1350530.RW2 (= the RAW & JPG of the same photo)


I can get 2008-04-01_001.JPG & 2008-04-01_002.RW2 with BRU using the boxes


I'm trying to get 2008-04-01_001.JPG & 2008-04-01_001.RW2 without using separate folders if possible
Cartman70
 
Posts: 4
Joined: Fri Jul 20, 2018 5:18 pm

Re: Renaming files with same name but different extension

Postby therube » Fri Jul 20, 2018 9:36 pm

Use two runs?

12:Filter -> *.jpg {Refresh}, rename

12:Filter -> *.rw2 {Refresh}, rename

Potential problem, or maybe not, is that there the theoretically is a 1 to 1 relationship between your file pairs - which you would want to keep, so the order as listed in BRU, I'd think would need to be consistent, though as you're naming by date, if you don't have date dupe's, that might not be a particular concern.

Otherwise, two runs may work fine?
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Renaming files with same name but different extension

Postby Cartman70 » Fri Jul 20, 2018 9:48 pm

Thank you - I'll give that a try
Cartman70
 
Posts: 4
Joined: Fri Jul 20, 2018 5:18 pm

Re: Renaming files with same name but different extension

Postby Cartman70 » Sat Jul 21, 2018 11:00 am

@ therube

Your suggestion works, thanks. As you say, as long as I check the 1 to 1 integrity beforehand, not a problem.
Cartman70
 
Posts: 4
Joined: Fri Jul 20, 2018 5:18 pm


Return to General Comments