Page 1 of 1

Batch rename

Posted: 14 Jan 2022 19:07
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

Re: Batch rename

Posted: 14 Jan 2022 19:37
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

Re: Batch rename

Posted: 14 Jan 2022 19:40
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)