Batch rename

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rsnell
Posts: 1
Joined: 14 Jan 2022 19:00

Batch rename

Post by rsnell »

I have a number of files in a folder:
myfile1-v2.txt
myfile2-v2.txt
myfile3-v2.txt

and want:
myfile1-v3.txt
myfile2-v3.txt
myfile3-v3.txt

Reading the help I would think "-v2/-v3" would work (replace -v2 with -v3) but it loses the root file name. Also "*-v2/*-v3" keeps the root but just appends -v3 instead of replacing -v2 with it.

What's the right way to do this?

Thanks, Rodney

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: Batch rename

Post by highend »

You need to use the "Search and Replace..." rename option (or "RegExp Rename..." if you know regular expression), but not the "Batch Rename..." one for this rename operation
One of my scripts helped you out? Please donate via Paypal

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: Batch rename

Post by Filehero »

Could it be you're mixing Batch Rename and Search and Replace?

Search and Replace with "v2/v3" as parameter is my way to go here.


Edit: too late.

Edit 2 (to add more value to this): Batch Rename is for cases where you change/decorate an existing base (the original file name w/o extension, hence the "v2" part keeps staying)

Post Reply