Batch rename part of filename

Post Reply
peterpix
Posts: 56
Joined: 01 Jun 16 14:36

Batch rename part of filename

Post by peterpix »

I've got a lot of files that I batch renamed in the format [ABC]_[yyyy][mm][dd]_[filename] so the current filename is e.g.

ABC_20210325_DSF1234.jpg

I now want to rename these files with different text at the front, e.g.

DEF_20210325_DSF1234.jpg

If I use [Text: DEF_][filename] I will of course get DEF_ABC_20210325_DSF1234.jpg which is not what I want.

Can anyone tell me please how I can batch replace ABC with DEF?

Peter
Windows 10 | Photo Supreme 6 | Affinity Photo | DXO Photolab 5 | Exposure X7 | Capture One 21 | Perfectly Clear | everything Topaz | Luminar 4 | Luminar AI | Photomatix 6 | Aurora HDR | Dynamic Photo HDR
Hert
Posts: 7870
Joined: 13 Sep 03 6:24

Re: Batch rename part of filename

Post by Hert »

Use the replace text option. See below.
This is the resulting rename text (which you can copy/paste to the rename dialog after clicking its hamburger -> Edit as Text)

Code: Select all

%FileName{replace=ABC_,DEF_}.%FileExtension
RenameReplace.png
RenameReplace.png (57.92 KiB) Viewed 1590 times
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
peterpix
Posts: 56
Joined: 01 Jun 16 14:36

Re: Batch rename part of filename

Post by peterpix »

Astonishingly easy! Thanks Hert for the rapid response.
Windows 10 | Photo Supreme 6 | Affinity Photo | DXO Photolab 5 | Exposure X7 | Capture One 21 | Perfectly Clear | everything Topaz | Luminar 4 | Luminar AI | Photomatix 6 | Aurora HDR | Dynamic Photo HDR
Post Reply