[8.0ß18x32] Search path not found! error on long net path

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
CodeMajster
Junior Member
Junior Member
Posts: 5
Joined: 2012-02-03, 20:15 UTC

[8.0ß18x32] Search path not found! error on long net path

Post by *CodeMajster »

"Search path not found!" error is shown when launching file form network path that contains more than 260 characters. Launching the same file from windows explorer works fine. Also, launching files from local NTFS path containing more than 260 characters works as expected. There are no issues moving or copying those files.

I tested all versions from 7.55a and they all have this problem.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have checked that: The Explorer is cheating, it's passing the DOS name to the called program if the name is too long. If you try with a truly long name like e.g.
\\servername\C\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\12345678.123\

with 12345678.123 repeated 20 times, it will fail in Explorer too.
Author of Total Commander
https://www.ghisler.com
CodeMajster
Junior Member
Junior Member
Posts: 5
Joined: 2012-02-03, 20:15 UTC

Post by *CodeMajster »

Yes that is true. But this cheat seems to be also implemented in TC for local paths. I know it is not perfect but it works most of the time. Can you implement it for network paths?

Thanks
User avatar
Impeeza
Junior Member
Junior Member
Posts: 24
Joined: 2004-04-30, 15:04 UTC

Windows File system

Post by *Impeeza »

All this behavior is related with Windows File System subsystem, the subsystem only can handle paths 256 characters long, but the folder structure can be longer, by example, if you share a folder in a deep folder structure, for the clients the share folder is the root so it can create 256 characters long new folder, but the file system can't access all the path
Impeeza jaja
User avatar
thims
Junior Member
Junior Member
Posts: 30
Joined: 2010-11-22, 16:27 UTC
Location: Kaliningrad, Russia

Re: Windows File system

Post by *thims »

Impeeza wrote:All this behavior is related with Windows File System subsystem, the subsystem only can handle paths 256 characters long
Are you talking about these 256 chars?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50861
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes that is true. But this cheat seems to be also implemented in TC for local paths. I know it is not perfect but it works most of the time. Can you implement it for network paths?
No, it's not - TC passes the long name with \\?\ prefix to the Windows function ShellExecuteEx, which seems to be able to handle it! But using the \\?\UNC\ prefix doesn't seem to work in ShellExecuteEx...
Author of Total Commander
https://www.ghisler.com
Post Reply