xplorer2 smashes path world record

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
nikos
Site Admin
Site Admin
Posts: 15831
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

xplorer2 smashes path world record

Post by nikos »

MAX_PATH extended from 260 to 33000 characters
that's what I call in too deep!

Image

of course it's a lot of time wasted (on my part) for what basically is a travesty :)
(unless you really like verbose folder names)


ps. Here is an alpha (test) version if you want to try it out. Basically most things should work, except for the few issues mentioned in the changelog file.
download 32 bit professional alpha: http://www.zabkat.com/test/kenny_alpha32.zip
there's no installer just unpack and run. If you are running xplorer2 already, start "Kenny" with /p command line switch
sanferno
Silver Member
Silver Member
Posts: 289
Joined: 2013 Nov 30, 18:40

Re: xplorer2 smashes path world record

Post by sanferno »

That's really deep. The guy in the video is a mixture of Arnold in Terminator 1 and Johnny Deep as a pirate :D

If it has a simply answer, why is it that 33000 limit and not another? :oops:
User avatar
nikos
Site Admin
Site Admin
Posts: 15831
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: xplorer2 smashes path world record

Post by nikos »

the 33000 comes from the NTFS low level length limit (it is actually "only" 32767)
note above I added an alpha download link
dunno
Gold Member
Gold Member
Posts: 506
Joined: 2007 Nov 18, 03:00
Location: Tropical Hammock

Re: xplorer2 smashes path world record

Post by dunno »

Out of curiosity, how wide must a screen be to view the entire path name, or does it wrap the name, or, does it automatically scroll the name if mouse is over the name ?.
Kilmatead
Platinum Member
Platinum Member
Posts: 4596
Joined: 2008 Sep 30, 06:52
Location: Dublin

Re: xplorer2 smashes path world record

Post by Kilmatead »

dunno wrote:how wide must a screen be...
Avoiding the obvious quips about Abraham Lincoln's legs, or Dylan songs, we'll note that it's virtually impossible to display that many characters no matter how well-wrapped the string or how-scrollable the field may be. In this case (and in this case only), I would forgive Nikos' normal ergonomic failures.) Given the normal edit-control of the WinAPI (as found in your friendly neighbourhood address-bar), scrolling through such a length would take... a wee-while. :wink:

On a curiously unrelated tangent, numbers given in documentation should always be well-salted... if you read the WinAPI's edit-control dox, it will happily point out that the "default" size is 32K... yet the true default limit is a more precise 30000 (it will begin to throw EN_MAXTEXT messages at anything above 29999). What does this have to do with MAXPATH? Very little (and it can be adjusted manually in any event) - but it does speak to the faithfulness of believing what we read. (For example, the initial '\\?\' four characters must be subtracted from the 32767 anyway, plus a null-terminator, possible env-var expansions, etc, etc... who the heck is going to allocate the required 65534 bytes [wchar_t] every time, "just in case?") Whatever happened to Y2K anyway... and how many scripts can be broken with this malarkey...

Also, the caveat that MAXPATH still applies to any given component-length within these absurd strings should always be observed. :D
User avatar
nikos
Site Admin
Site Admin
Posts: 15831
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: xplorer2 smashes path world record

Post by nikos »

if you notice the pic above, the addressbar (combo box) barfs when the path length is around 5500 and shows nothing
Kilmatead
Platinum Member
Platinum Member
Posts: 4596
Joined: 2008 Sep 30, 06:52
Location: Dublin

Re: xplorer2 smashes path world record

Post by Kilmatead »

I did actually notice that, and have seen it before, most notably in the LocaleSearch script when injecting a large amount of text into x2's search field - nothing will appear, yet the command usually proves successful in spite of that.

I figured it's just because the edit-control of the combobox shares its personal allocation with everything in the dropdown list as well, so the reductions are variable. :shrug: MSDN itself does state (somewhere...) that just because the text injection fails, it doesn't actually mean the internal memory of the control is exhausted, it's just not available for display or direct user-editing. As we've attested to before, the WinAPI can be an inscrutable place to dwell at times... :D
Post Reply