Support overlong filenames actually not working?

Things you’d like to miss in the future...
Forum rules
When reporting a bug, please include the following information: your XYplorer version (e.g., v27.90.0047), your Windows version (e.g., Win 11), and your screen scaling percentage (e.g., 125%). We recommend adding your Windows version and screen scaling percentage to your profile or signature. This will make debugging much easier for us.
Post Reply
1024mb
Posts: 230
Joined: 14 Dec 2018 23:26
Location: Windows 10 @ 100%

Support overlong filenames actually not working?

Post by 1024mb »

I'm not sure if this should be a feature request or a bug.

I've enabled Support overlong filenames but when XYplorer opens a file it passes the filepath without prefixing \\?\ to it so long path files fail to open.
I remember reading some time ago that thumbnails or hover box won't work for these files and that's fine but opening the file should work provided the associated program supports it, right?

I've noticed when I double click a video file in M$ File Explorer the program is launched like "C:\Programs\Video Software\video-player.exe" "\\?\D:\someveryveryveryveryverylongpath.mkv" whereas XYplorer launches it like "C:\Programs\Video Software\video-player.exe" "D:\someveryveryveryveryverylongpath.mkv".

That applies to normal and custom file associations. I'm using 32-bit.

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Support overlong filenames actually not working?

Post by admin »

Ah yes. You know, when I added support for overlong filenames they weren't hardly any apps that could deal with overlong files, prefixed with \\?\ or not. So now I made some tests on Win11 and yes, things changed. The next beta should work better. :tup:

1024mb
Posts: 230
Joined: 14 Dec 2018 23:26
Location: Windows 10 @ 100%

Re: Support overlong filenames actually not working?

Post by 1024mb »

Tried 0301 but it's still not working for me. Either normal or custom association.

I have a 262 char filepath and when double clicking the video player won't play the file and I still see XYplorer opens the file without the prefix.

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Support overlong filenames actually not working?

Post by admin »

Can't explain. The prefix is definitely applied and it fixed it for me. :?

JohnM
Posts: 271
Joined: 08 Jun 2006 11:59
Location: Windows 11 Pro @100%

Re: Support overlong filenames actually not working?

Post by JohnM »

I have a problem that seems related to this discussion.

I have a series of toolbar buttons that run bash scripts which are failing because XY is adding a prefix "\\?\" to paths where it is not expected.

Consider this script (it builds a command that will be run with "openwith" on selected files):
Script.PNG
Script.PNG (15.09 KiB) Viewed 48 times

Note the final command is being run through a temporary batch file so I could see what was being run. The batch file looks like this:
do_bash.PNG
do_bash.PNG (8.27 KiB) Viewed 48 times

When executing the script, the echo command gives:
Echo.PNG
Echo.PNG (9.34 KiB) Viewed 48 times

However what is being run is:
Actual command.PNG
Actual command.PNG (12.11 KiB) Viewed 48 times
We can see there is "\\?\" being added erroneously.

Strangely, I have other similar scripts where this does not happen.

Cheers
John

Edit: rolling back to v28.00.567 resolves this issue for me.
Windows 11 Pro x64
XYplorer 28.80.0577 x64 beta

admin
Site Admin
Posts: 64825
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Support overlong filenames actually not working?

Post by admin »

JohnM wrote: 12 Nov 2025 23:24 Edit: rolling back to v28.00.567 resolves this issue for me.
The next beta should resolve it too.

Post Reply