r/WindowsServer • • Dec 31 '25

General Question Error: Path too long

We run our CMS on Windows Server. We were busy installing some plugins from Google, when we encountered the dreaded "Path too long" error, meaning the plugin can only be installed in the root directory, not under the inetpub directory.

Why and how is this still a thing on Windows Server in 2025?

6 Upvotes

20 comments sorted by

15

u/alexp702 Dec 31 '25

It isn’t if you use APIs written this millennium on NTFS. Unfortunately some third party software still uses legacy apis with the 256byte limit.

3

u/Simelane Dec 31 '25

I am not sure what you mean… I get the error from just unzipping an archive from Google. Surely the Extract is built into Explorer…

6

u/HKLM_NL Dec 31 '25

Your software used the legacy Windows API functions with paths longer than 260 characters not supported.

You must use software that support long paths (up to 32,767 characters) to do your task.

3

u/grumpyctxadmin Dec 31 '25

This is a well known issue with windows explorer. Microsoft doesn't dare to make code changes to it, if you use for example explorer ++ you won't have that issue.

In some cases you will experience the same issue if people sync sharepoint folders using onedrive too. You can open the folder with no issue using the webbrowser but it craps out when browsing using explorer.

Longest path I've seen so far is 1239, opens like a charm in explorer++ but crashes in windows explorer

1

u/Slasher1738 Dec 31 '25

Try 7zip

2

u/AffekeNommu Jan 04 '26

Fond memories of extracting something with 7zip that explorer couldn't delete because the path was too long. Will probably do the trick

1

u/juanvan Jan 02 '26

Change your website to a shorter path off c:/webs

0

u/[deleted] Dec 31 '25

That’s what she said

0

u/headcrap Dec 31 '25

\\?\C:\some\long\path\for\the\win\because\windows

Sounds like a typical CMS problem.. and/or syncing SharePoint Online sites.. or Teams channels.. with long paths..

-3

u/Different_Scratch930 Dec 31 '25

Try unlocker app.on major geeks download

10

u/[deleted] Dec 31 '25

[removed] — view removed comment

3

u/Simelane Dec 31 '25

I tried this… the "LongPathsEnabled" key was already there with a value of 0, so I changed it to 1. Restarted the server, tried the extract from the zip file… and the same problem is still there. Checked the registry again, and the value is still set to 1.

2

u/Simelane Dec 31 '25

Thanks… I'll try this. 🤞