Support special filenames
Posted: 14 Jun 2013, 00:55
It would be really nice if Salamander supported handling 'special' filenames. For instance:
These filenames can also be (accidentally) created with Cygwin tools, for instance.
Now try to rename or delete the file with Salamander:
Maybe it's as easy as retrying failed file operations with \\?\ prepended? 
I'm not talking about Unicode support, although I think that's related.
- ending in a dot
- ending in a space
- reserved names like CON or NUL
- longer than 256 characters
Code: Select all
echo.>"\\?\C:\Temp\..."
Now try to rename or delete the file with Salamander:
The way to fix this is to prepend \\?\ to the absolute path:---------------------------
Error Renaming File
---------------------------
(32) The process cannot access the file because it is being used by another process.
Code: Select all
del "\\?\C:\Temp\..."

I'm not talking about Unicode support, although I think that's related.