[9.0a x64] Special characters in names => obscure error

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
dabba
New Member
New Member
Posts: 1
Joined: 2017-01-14, 08:51 UTC

[9.0a x64] Special characters in names => obscure error

Post by *dabba »

Hi everyone,

one litte flaw:
If you try to rename a file to a name containing reserved characters, like "/" or ":", Total Commander shows the error message:
Error: Cannot write c:/exa:mple.exe Please remove the write protection.

[Retry] [Retry As Administrator]
This is a bit confusing, since a write protection or missing permissions are obviously not the cause of the error. :)
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Post by *gdpr deleted 6 »

I can confirm. But it seems only the Rename function (SHIFT+F6) is affected.
(Copy and move function give proper error dialog telling about invalid target path.)
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Well, c:/exa:mple.exe may be treated as a valid path: forward slashes work for some Windows API calls, and a colon is a separator between file name and stream name, so this path points to mple.exe stream of c:\exa file. You can try to create such stream from e.g. in Shift+F4 dialog.

However such paths are not valid in all places, and TC only shows error message that Windows functions return.

Although it is still interesting why quick rename and full move show different error messages. Perhaps there are some additional checks in full move version.
Post Reply