Good day!
Total Commander 8.0b19
I press Shift+F6 on file in the virtual directory (for example \\My Documents or \\Desktop) to rename the file. This file contains additional point in its name. For example: "my.file.txt"
Option "RenameSelOnlyName" in the file "wincmd.ini" is set to 1.
It should be highlighted in all of the file name, up to its extension (for example "my.file"). But in these virtual folders, highlight the text in the file name only to the last point (for example, only "my"). In normal folder is highlighted correct - the entire text to the file extension.
Bug appears in all versions of Total Commander 8 Beta - x86 and x64.
In addition, I can not change the file extension in virtual folders! In the textbox to rename the file extension is not displayed. In normal folders that everything is OK.
[TC8.0b19] incorrect rename of file names in \\ folders
Moderators: Hacker, petermad, Stefan2, white
[TC8.0b19] incorrect rename of file names in \\ folders
Last edited by Nickola on 2012-02-17, 06:42 UTC, edited 1 time in total.
Confirmed also in 7.56. However this happens only if you try to rename a file with a registered extension, for example .lnk, .mkv or .exe. If you try to rename a file without such extension, like .a or .nothing, everything works as expected.
EDIT:
If you disable "Hide extensions for known file types" in Explorer's settings, it will work again.
EDIT:
If you disable "Hide extensions for known file types" in Explorer's settings, it will work again.
Windows 10 Pro x64, Windows 11 Pro x64
Confirm: Yes, only registered file types have this problem.
And I confirm appearance for enable/disable "Hide extensions for known file types" in folder settings. Extension for registered types visible in rename textbox (Shift+F6) if "Hide extensions for known file types" is set to "Disable".
Maybe bypass this system setting in Total Commander?
And I confirm appearance for enable/disable "Hide extensions for known file types" in folder settings. Extension for registered types visible in rename textbox (Shift+F6) if "Hide extensions for known file types" is set to "Disable".
Maybe bypass this system setting in Total Commander?
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
In virtual folders, I'm requesting the name from the system - I have no influence on what Windows returns, sorry.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Dear author!
In the File panel always displays the correct file name and extension. Even in virtual folders. Regardless of the "Hide extensions for known file types" option! Why do I rename a file in the textbox (only in virtual folders), there is a different file name? Extension is lost if the "Hide extensions for known file types" is enabled. Could not get file extension for renaming as well as it is obtained for the file panel?
Or, if you refer to the operating system settings, then do not show the extension for known file types in the file panels in virtual folders, if the "Hide extensions for known file types" is enabled. It will be more correct than to show the file extension, but does not give the possibility to change it. IMHO.
And you can monitor the status of the parameter "Hide extensions for known file types" in the registry. It's easy. Below I have listed the key in the registry, which should be checked.
Registry:
--------------------
Key: "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\"
Parameter: "HideFileExt" (DWORD),
Value: 0 - registered extension visible, 1 - registered extension hidden
If "Hide extensions for known file types" enabled, you represent everything that is displayed in the textbox for Rename as a file name without the extension. And highlights the entire text. And not until the last point in the file name, as is happening now.
If "Hide extensions for known file types" turned off, then highlight all the text in the textbox to the last point in text.
Sorry for my bad English.
In the File panel always displays the correct file name and extension. Even in virtual folders. Regardless of the "Hide extensions for known file types" option! Why do I rename a file in the textbox (only in virtual folders), there is a different file name? Extension is lost if the "Hide extensions for known file types" is enabled. Could not get file extension for renaming as well as it is obtained for the file panel?
Or, if you refer to the operating system settings, then do not show the extension for known file types in the file panels in virtual folders, if the "Hide extensions for known file types" is enabled. It will be more correct than to show the file extension, but does not give the possibility to change it. IMHO.
And you can monitor the status of the parameter "Hide extensions for known file types" in the registry. It's easy. Below I have listed the key in the registry, which should be checked.
Registry:
--------------------
Key: "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\"
Parameter: "HideFileExt" (DWORD),
Value: 0 - registered extension visible, 1 - registered extension hidden
If "Hide extensions for known file types" enabled, you represent everything that is displayed in the textbox for Rename as a file name without the extension. And highlights the entire text. And not until the last point in the file name, as is happening now.
If "Hide extensions for known file types" turned off, then highlight all the text in the textbox to the last point in text.
Sorry for my bad English.
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm sorry but I have to do it this way. Why? I have to call the function IShellFolder->SetNameOf to set the new name. When the user has disabled the display of extensions in Explorer, Windows expects the name without extension passed to this function. Therefore the only way to change also the extension is to not hide the extensions in Explorer.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com