I'm trying to get a clear understanding of what I can do and what I can expect re pathnames > 260 characters.
I was using my usual bulk renaming tool - Advanced Renamer - and I saw that some file renaming attempts were rejected with an error message. I think the error message was path not found, with no reference to the path being too long. On the other hand, when I did the same rename on a single file in Everything 1.4 - it was accepted. Still, when I tried to copy the full path and filename to clipboard using my PathCopyCopy shell extension, only the folder path was copied; the filename was left off. But when I used the Everything context menu option "Copy Full Path to Clipboard" - the entire path and filename was copied to the clipboard. I determined that the total path + file length of that file was 292. I also checked to see that I had enabled long path support - HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled was set to 1 as required. But even though I had enabled long paths, still Advanced Renamer and PathCopyCopy don't seem to be able to handle them.
So why was Everything able to set and copy the filename while Advanced Renamer and PathCopyCopy failed? I did find this at https://docs.microsoft.com/en-us/window ... n?tabs=cmd:
So maybe Everything has the required support and element in the application manifest while the other programs do not?The application manifest must also include the longPathAware element.
XML
<application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings">
<ws2:longPathAware>true</ws2:longPathAware>
</windowsSettings>
</application>
Also - while the LongPathEnabled registry key enables support of pathnames < 32767 characters, it seems that filenames and folder names must still be > 255 (256?) characters. Even in Everything, when I tried to rename a file with a name > 256 characters, a message was displayed that filenames can't be longer than 255. Also when I tried to save a file with a name > 255 in the usual Save As dialog, that was rejected. It seems a bit odd to limit file/folder names this way if pathnames up to 32767 are allowed.