Bug: Long path cannot open file (regression since v26.70)

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

Hi Donald,

I found a regression bug with long paths in recent versions.

- XYplorer version: YOUR_VERSION (e.g. 27.20.1204 32-bit / 64-bit)
- Windows version: Windows 10/11 Pro 22H2
- Issue: Cannot open files with very long paths (over 260 chars).
- Last good version: v26.70 (works fine)
- Broken versions: v27.x, v28.x (all newer)

Example path (cannot open .doc):
E:\08-美国公司\D02-房地产开发项目\D02-招标采购\EE-87【工程-2020-FCKF-F181】房地产开发项目高层住宅区地库地坪、划线、交通设施工程施工合同-美国西雅图工程有限公司-112.456789万-9%-2020.08.27\F01-【施工方】费用上报-参数(面积与造价)-v1.0版本\00-美国房地产地库开发品质地库全套施工图(仅自行对照地坪相关图纸) 2020.01.12\01.大区地库精装施工图\美国房地产开发品质地库已盖章合格图纸cad格式\建筑\地库美化精装修设计\20200802美国房地产开发物料表.doc

Behavior:
- v26.70 and earlier: opens normally, no error.
- v27.x+: error "path too long" or fails to open, cannot launch associated application.

Configuration:
- Support overlong filenames: ON
- System long paths enabled: YES

Please fix this regression. Thanks!

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

Re: Bug: Long path cannot open file (regression since v26.70)

Post by admin »

1) How exactly do you open the file? Double-click?

2) Are you using any custom file associations for this file type within XYplorer? (Tools | Customize File Associations...)

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

I have tried opening it by double-clicking, as well as via the "Open with" option in the right-click menu, but I keep getting an error that Word cannot open or save this file because the path name is too long.
I have set up file associations, but I still cannot open it properly.

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

By the way, the same folder path could be opened smoothly in version 26.70.06 without any error message about the path being too long.Also, the file can be opened without issues from Windows’ native File Explorer (explorer.exe).

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

Re: Bug: Long path cannot open file (regression since v26.70)

Post by admin »

This could be the culprit:

Code: Select all

v26.80.0404 - 2025-02-05 19:18
    ! Opening Overlong Items: A LongPathAware Windows 10 or 11 had problems with opening 
      overlong items by double-click or ENTER, ironically. Fix attempt. Might be a 
      regression for some systems though. The whole business is darker than black, thank 
      you, Microsoft.
Could you please verify this by testing this version and the version right before:
v26.80.0403: viewtopic.php?p=227241#p227241
v26.80.0404: viewtopic.php?p=227260#p227260

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

In version v26.80.0403, files with long paths can be opened normally. However, in version v26.80.0404, the files fail to open. The issue appears to have started occurring starting from v26.80.0404.

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

Is there any way to fix this issue? As an XYplorer user, I believe the basic and core function of XYplorer is to quickly locate and open target files. If long-path files can only be opened via Windows’ built-in File Explorer (explorer.exe), I will have to choose not to upgrade the software until the problem is resolved.

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

Re: Bug: Long path cannot open file (regression since v26.70)

Post by admin »

1) What is your system setting for LongPathAware? You find it in the 7th line of Help | Various Information.

2) What is your setting for tweak OpenOverlongNoDOS83? Check it in XYplorer.ini.

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

My settings are as follows:
Windows UI Language: ChineseSimplified, LongPathAware: Yes
OpenOverlongNoDOS83=0

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

With the same Windows system settings and environment, as well as identical XYplorer configuration, version 26.70.06 can open long-path files smoothly, whereas version v26.80.0404 and later versions fail to open such files.

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

Re: Bug: Long path cannot open file (regression since v26.70)

Post by admin »

Please try the new tweak OpenOverlongForceDOS83=1 in this beta version: viewtopic.php?p=237323#p237323

How to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

This method has perfectly solved my problem. Thank you for your generous help. I sincerely wish and hope that the software will become more and more perfect.

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

Re: Bug: Long path cannot open file (regression since v26.70)

Post by admin »

Okay! :tup:

Did this only affect DOC files? If yes, which version of Word are you using?

85152727@qq.com
Posts: 11
Joined: 20 Apr 2026 06:11

Re: Bug: Long path cannot open file (regression since v26.70)

Post by 85152727@qq.com »

No, this issue affects the opening of **all files**, not just office software. Files such as CAD drawings also cannot be opened normally.

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

Re: Bug: Long path cannot open file (regression since v26.70)

Post by admin »

Thanks. I'll make it an official option in Configuration.

Post Reply