Share via

Enable LongPath-Windows 10

Anonymous
2021-05-11T11:46:00+00:00

Issue:

We have few users who are synching files from the sharepoint to their local machine. The filepath consists of more than 260 charecters. Users are able to open the files online but are unable to open them locally as they get the following error message: Cannot open the file because the file path is more than 260 characters. Try Shortening the path or filename.

The file path is 320 charecters.

Shortening the path will not help in this scenario as there is a specific naming convention requirement for this department.

What have you tried to troubleshoot this?

We have enabled the long path via registry and also via group policy but it does not solve the issue.

Please assist.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2021-05-11T19:16:27+00:00

Hi Fredrik

Is there a way of doing this on a local machine without making changes to the netlogon on DC? We have some users who are not part of our domain and are working directory from the workgroup. 

Sure. Put the command into a batch file which you save here:

C:\Users%UserName%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Brink 16,570 Reputation points Volunteer Moderator
    2021-05-11T14:50:01+00:00

    Hello Lucky,

    You could see if enabling Win32 long paths using an option in the tutorial below may be able to help.

    https://www.tenforums.com/tutorials/51704-enable-disable-win32-long-paths-windows-10-a.html

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2021-05-11T14:24:20+00:00

    Hello Lucky

    Thanks for reaching out! My name is Fred I'm an Independent Advisor and a Windows user like you.

    I'm sorry to tell you but every app or service has its own limits and that the case for Microsoft 365 Sharepoint. See the section of the File name and path lengths on the following article:

    https://support.microsoft.com/en-us/office/rest...

    Additionally to this, I advise you contact Microsoft 365 support to advise you which solution will be the best for you in your tenant with Sharepoint:

    https://docs.microsoft.com/en-us/microsoft-365/...

    I hope this information is useful to you.

    Best Regards,

    Fred

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2021-05-11T12:52:17+00:00

    Thank you for your reply. I will try that shortly and keep you posted.

    Thanks again.

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2021-05-11T12:34:28+00:00

    Assuming that the long path looks like this:

    C:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

    you can solve the problem by inserting this command into netlogon.bat:

    subst  S:  C:\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

    The user's files will now be visible on drive S:. How exactly you set up the substitution depends on your local conditions.

    If this solves your problem then please remember to mark my reply by clicking "Did this solve your problem?". It's your way of saying "Thank you".

    Was this answer helpful?

    0 comments No comments