Rename: Add "Replace extension" option

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
prino
Posts: 358
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Rename: Add "Replace extension" option

Post by prino »

Right now it takes two steps, first to remove the current one, then to add a new one. (Unless I'm missing something?)

An optional tick-box to allow just replace the current extension with the new one would be very desirable.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy (& W7-64 Pro @ 100%)
At last, a tiny bit of programming here... :mrgreen:

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

Re: Rename: Add "Replace extension" option

Post by jupe »

You are missing something...

File | Rename Special | Set Extension...

Just enter the extension you want to change to = 1 step.

prino
Posts: 358
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Rename: Add "Replace extension" option

Post by prino »

No, that sets the extension, without removing the old one, I want to replace the extension with a new one.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy (& W7-64 Pro @ 100%)
At last, a tiny bit of programming here... :mrgreen:

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

Re: Rename: Add "Replace extension" option

Post by highend »

And you really did enter the new extension without a leading dot?
One of my scripts helped you out? Please donate via Paypal

prino
Posts: 358
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Rename: Add "Replace extension" option

Post by prino »

highend wrote: ↑01 Jan 2021 23:44 And you really did enter the new extension without a leading dot?
No, obviously I didn't...

Anyway, this is the same type of abuse I commit in the input file of my hitchhike statistics programs, where a "." in the departure time is just a separator of hours and seconds, but where a ":" indicates a departure after a ferry-crossing, where an "x" indicates a departure after crossing to the other side of the road, and where an "X" also indicates a departure after crossing to the other side of the road, but differently.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy (& W7-64 Pro @ 100%)
At last, a tiny bit of programming here... :mrgreen:

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Rename: Add "Replace extension" option

Post by admin »

FYI, I use this to toggle webp / jpg:

Code: Select all

if (gpc(,"ext")=="webp") {renameitem("*.jpg")} elseif (gpc(,"ext")=="jpg") {renameitem("*.webp")};

Post Reply