Page 1 of 1

Wild cards with renameing

Posted: Thu Apr 02, 2020 9:12 pm
by IamFof
Guys
I am sure that this is doable, using a batch file, but I've not had to touch or think about them for about 40 yrs.
During this time of lockdown, I decided to rename and reorganise all my image files.
The file structure is NAME ## - Descriptor.xxx, where all the Descriptors are likely to be different, and xxx could be jpg, CR2, RW2, etc
I could well have, for example:-
NAME 01 - Fred.jpg
.
.
NAME 11 - Nancy.png
NAME 12 - The Ancient one.CR2
.
.
Name 32 - Me as a baby - Ugh.jpg

If I need to renumber NAME 12 - NAME 32 to NAME 17 - NAME 37, without altering the Descriptions or extensions, only the numbers.
How do I do it?
TIA
Stay safe and lookout for your neighbours.
Fof

Re: Wild cards with renameing

Posted: Thu Apr 02, 2020 10:32 pm
by michel038
I think it's a bit dangerous

Edit: Go to next message for new version.


- Select only the files you want to rename,
-Tools, Batch rename
-Apply the settings shown in this picture
- OK
- Then, run another batch rename to add "NAME" at the beginning of file names
with only Name {filename} in the first field
(by checking / unchecking "Replace" you can understand how it works )

NEW: Wild cards with renameing

Posted: Fri Apr 03, 2020 6:54 am
by michel038
NEW VERSION one shot

- Select only the files you want to rename,
- Check that the sort order is correct.
- use : Tools, Batch rename
- Apply the settings shown in this picture
- Check if new names are right
go


(by checking / unchecking "Replace" you can understand how it works )

Re: Wild cards with renameing

Posted: Fri Apr 03, 2020 8:47 am
by IamFof
michel
Thank you.
That is how I am doing it at present.
I do realise the potential for a bit of a bloodbath, but was hoping to be able to do mixed blocks.
Regards

Re: Wild cards with renameing

Posted: Fri Apr 03, 2020 9:41 am
by cday
IamFof wrote: Fri Apr 03, 2020 8:47 am michel
Thank you.
That is how I am doing it at present.
I do realise the potential for a bit of a bloodbath, but was hoping to be able to do mixed blocks.
Presumably you could backup the relevant database to enable recovery, if necessary, I don't use metadata so I can't advise on how to do that..