Batch rename part of filename

Post Reply
peterpix
Posts: 54
Joined: 01 Jun 16 15:36

Batch rename part of filename

Post by peterpix » 25 Mar 21 11:36

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 3 | Exposure X6 | Capture One 21 | Perfectly Clear | everything Topaz | Luminar 4 | Luminar AI | Photomatix 6 | Aurora HDR | Dynamic Photo HDR

Hert
Posts: 6811
Joined: 13 Sep 03 7:24

Re: Batch rename part of filename

Post by Hert » 25 Mar 21 11:50

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 319 times
This is a user-to-user forum. If you need product support then please send a message

peterpix
Posts: 54
Joined: 01 Jun 16 15:36

Re: Batch rename part of filename

Post by peterpix » 25 Mar 21 12:02

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

Post Reply