windows 11

Shuttleworth, Maria (Lourdes) 0 Reputation points
2025-02-25T16:45:01.2433333+00:00

What is the maximum number of characters for folder names.

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Marcin Policht 49,640 Reputation points MVP Volunteer Moderator
    2025-02-25T16:59:19.49+00:00

    As per https://learn.microsoft.com/en-us/answers/questions/1496090/maximum-path-length-limitation

    Windows Server, starting with Windows Server 2016 and Windows 10 Version 1607, supports long pathnames by default, which means that the maximum length of a path is no longer the traditional 260 characters.

    To enable long paths, enable the "Enable Win32 Long Paths" option in Group Policy. You can access the Group Policy Editor by following these steps:

    1. Open the Run dialog box, type gpedit.msc and press Enter.
    2. Go to Computer Configuration > Administrative Templates > System > File System.
    3. Find the "Enable Win32 Long Path" option on the right pane, double-click it and set it to the "Enabled" state.
    4. Click the Apply and OK buttons, and then close the Group Policy Editor.

    When long paths are enabled, you can create, copy, move, and rename file paths longer than 260 characters on your Windows Server.

    https://learn.microsoft.com/zh-cn/windows/win32/fileio/maximum-file-path-limitation?tabs=registry


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. Kapil Arya 8,451 Reputation points MVP Volunteer Moderator
    2025-03-01T02:58:26.3+00:00

    AFAIK, that's 260 characters limit.

    0 comments No comments

  3. Anonymous
    2025-03-21T06:57:50.9866667+00:00

    Hello,

    Thank you for posting in Q&A forum.

    The default system path length limit is 260. You can open the registry editor and modify Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled (Type: REG_DWORD) to 1 to break the 260-character length limit.

    User's image

    Note If you modify the registry incorrectly, you can cause serious problems. Therefore, follow these steps carefully. For additional protection, back up the registry before you modify it. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.

    I hope the information above is helpful.

    Best regards

    Zunhui

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.