Using TotalCmd (x64) 10.00
Quick rename may discard part or all of the file extension when using it with .* at the end.
Here are some scenarios. The first works fine; the rest loses some or all of the zip extension.
All were done with the option "Select only the file name when renaming (not the extension)" switched OFF. I believe you can hit Shift-F6 twice to get the same result (initially selecting all of the filename) if you have that option switched ON. Or it may not even matter, as long as you type what is shown below.
tool.zip -> Shift-F6 -> tool-v1.* + Enter -> tool-v1.zip = OK
tool.zip -> Shift-F6 -> tool-v1.2.* + Enter -> tool-v1.2.p = not OK
tool.zip -> Shift-F6 -> tool-v1.23.* + Enter -> tool-v1.23 = not OK
tool.zip -> Shift-F6 -> tool-v1.2.3.* + Enter -> tool-v1.2.3 = not OK
It seems that it tries to do some kind of "smart replacement" starting from the first dot in the filename, but I would expect it to work from the last dot in the filename, which is where the extension starts.
Quick rename (Shift-F6) used with .* can discard some or all of the file extension
Moderators: Hacker, petermad, Stefan2, white
Re: Quick rename (Shift-F6) used with .* can discard some or all of the file extension
pjotrb,
TC just maintains compatibility to cmd.exe which exhibits the same behavior.
Roman
TC just maintains compatibility to cmd.exe which exhibits the same behavior.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
- ghisler(Author)
- Site Admin
- Posts: 50555
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Quick rename (Shift-F6) used with .* can discard some or all of the file extension
Yes, the * takes characters from that position in the original extension until the end. It doesn't allow to insert characters in the name.
For example, in this string:
tool.zip -> Shift-F6 -> tool-v1.2.*
The old extension is .zip
The new extension is .2.*
So the * only covers the p from .zip.
For example, in this string:
tool.zip -> Shift-F6 -> tool-v1.2.*
The old extension is .zip
The new extension is .2.*
So the * only covers the p from .zip.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: Quick rename (Shift-F6) used with .* can discard some or all of the file extension
Moderator message from: "Hacker"
Moved to the English forum.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.