How to replace strings through batch rename?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

How to replace strings through batch rename?

Post by cadu »

Hi,

I'd appreciate help.
I'd like to replace the string _Rename through batch rename functionality:

from:
Text_Rename_01.txt
Text_Rename_02.txt
Text_Rename_03.txt

to:
Text_01.txt
Text_02.txt
Text_03.txt

How to?

Thanks for assistance!
Carlos_Cadu

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: How to replace strings through batch rename?

Post by highend »

Not possible if we can safely assume that the leading "Text" can be <any pattern>, use
Search and Replace...
or
RegExpRename...

instead
One of my scripts helped you out? Please donate via Paypal

cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Re: How to replace strings through batch rename?

Post by cadu »

Thanks for info.
Search and Replace... was what I needed!

rod222
Posts: 72
Joined: 05 Mar 2019 11:44
Location: Country Western Australia.

Re: How to replace strings through batch rename?

Post by rod222 »

How may I remove the first 5 characters of an *jpg image, via search and replace ?

eg : I wish to remove the first 5 characters (that includes the space) "Gibr "
from these postage stamps, ID.
(IT challenged)
Gibraltar.jpg
To see the attached files, you need to log into the forum.

jupe
Posts: 3569
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to replace strings through batch rename?

Post by jupe »

Well if you really wanted to use S&R you would just put in Gibr / in the dialog, but I'd actually suggest using Batch Rename instead with /cut 6,

rod222
Posts: 72
Joined: 05 Mar 2019 11:44
Location: Country Western Australia.

Re: How to replace strings through batch rename?

Post by rod222 »

I say! Jolly good advice,
worked a charm, thank you so much.
XYPlorer rules.

Post Reply