Enable long paths Windows Server 2022

Hi,

I have Windows Server 2019 and I need to enable support for a max path length. (The Default is 260 length) I set the registry " LongPathsEnabled " to "1" at HKLM\SYSTEM\CurrentControlSet\ControlFileSystem and also enable long path support via Group Policy Computer Configuration > Administrative Templates > System > Filesystem. Enable the policy Enable NTFS long paths. but still, I get the error "the file names would be too long for the destination folder" when I try to create a subfolder longer than 260 length 

Thanks in Advanced

Select Your Region

Sign In to access restricted content

You can easily search the entire Intel.com site in several ways.

  • Brand Name: Core i9
  • Document Number: 123456
  • Code Name: Alder Lake
  • Special Operators: “Ice Lake”, Ice AND Lake, Ice OR Lake, Ice*

You can also try the quick links below to see results for most popular searches.

  • Product Information
  • Support
  • Drivers & Software

Recent Searches

Sign In to access restricted content

Only search in

Title Description Content ID

Sign in to access restricted content.

The browser version you are using is not recommended for this site.
Please consider upgrading to the latest version of your browser by clicking one of the following links.

  • Safari
  • Chrome
  • Edge
  • Firefox

  1. Support Home
  2. FPGA Knowledge Base Articles Search

Article ID: 000075424 Content Type: Product Information & Documentation Last Reviewed: 09/10/2018

How do I extend Windows* Server 2016 file path support from 260 to to 1024 characters?

Environment

Bug ID: FB: 583955;

Quartus Edition

  • Intel® Quartus® Prime Pro Edition

  • Version Found: 18.0.1

    BUILT IN - ARTICLE INTRO SECOND COMPONENT

    Description

    Windows* Server 2016 supports file paths up to 260 characters by default. Starting from build 1607, Windows Server 2016 now supports longer paths up to 1024 characters with the proper registry configuration. The Intel® Quartus® Prime Pro Edition software can now support file paths up to 1024 characters when Windows Server 2016 registry is correctly configured.

    Resolution

    To configure your Windows* Server 2016 system registry to support long file paths, follow these steps:

    Verify or edit the Registry settings to support long paths:

    a)      Open the Registry Editor (Press Windows* Key and type regedit and press Enter key)

    b)      Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

    c)      Change LongPathsEnabled value to 1. If you do not see LongPathsEnabled listed, you must create the entry by right-clicking the FileSystem key, choosing New > DWORD (32-bit) Value, and then naming the new value LongPathsEnabled.

    Verify or edit any Group Policy to support long paths:

    a)      Open Group Policy Editor* (Press Windows Key and type gpedit.msc and hit Enter key)

    b)      Navigate to the following directory: Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS.

    c)      Click Enable NTFS long paths option and enable it.

    These changes have been verified with Intel® Quartus® Prime Pro and Windows* Server 2016 build 1607 only. Other Windows OS, such as Windows 10 have not been verified.

    • Description
    • Resolution

    Need more help?

    Give Feedback

    Disclaimer

    Issue:

    How to change the default 256 character path length limitation (MAX_PATH) in Windows 10.

    Environment:

    Windows 10 (1607) and newer versions.

    Solution:

    Starting in Windows 10 (Version 1607), the MAX_PATH limitations have been removed from Common Win32 file and directory functions. To use the new extended path behavior, you must

    opt-in by using a registry key change

    .

    Warning!
    Problems caused by improperly editing the Windows registry could render your computer operating system unusable. Microsoft provides a wealth of critical information that you need to know about the registry in the Microsoft Knowledge Base. Use the Microsoft Registry Editor only at your own risk and only after backing up the registry as outlined for your operating system in the Microsoft article How to back up and restore the registry in Windows and in the related solution How to back up the system registry. Additional information about the registry is also contained in the Help topics in the Microsoft Registry Editor.

    To enable the long path behavior in Windows 10:

    1. Go to Windows Start and type REGEDIT.
    2. Choose the Registry Editor.
    3. In the Registry Editor, navigate to the following location: at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.
    4. Select the entry named: LongPathsEnabled. 

    Note: If the registry key does not exist, the entry can also be added by doing the following:

    1. With the FileSystem folder selected, right-click in the empty space of the Name column where the registry keys are located.
    2. Select New.
    3. Choose the DWORD (32-bit) Value.

    1. Right-click the newly added key and choose Rename.
    2. Name the key LongPathsEnabled.
    3. Press Enter.
    1. Double-click on the LongPathsEnabled entry to open the key. 
    2. In the Value data field, enter a value of 1. This will enable to long paths option.

    The registry key's value will be cached by the system (per process) after the first call to an affected Win32 file or directory function. The registry key will not be reloaded during the lifetime of the process. In order for all apps on the system to recognize the value of the key, a machine restart might be required because some processes may have started before the key was set.

    Additionally, the registry key can also be controlled via the Group Policy in Computer Configuration > Administrative Templates > System > Filesystem > Enable NTFS long paths.

    Products:

    All Desktop Products;

    How do I enable long file paths?

    4.3 Enabling Windows Long Path (Windows 10 - 1803 build).
    Click Window key and type gpedit. msc, then press the Enter key. ... .
    Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem..
    Double click Enable NTFS long paths..
    Select Enabled, then click OK..

    How do I enable Windows long path support?

    Press Win + R keys on your keyboard and type gpedit. msc then press Enter. Group Policy Editor will be opened. Go to Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem, then enable the Enable Win32 long paths option.

    How do I bypass the path length limit in Windows?

    Go to Windows Start and type REGEDIT. Choose the Registry Editor. In the Registry Editor, navigate to the following location: at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem..
    Right-click the newly added key and choose Rename..
    Name the key LongPathsEnabled..
    Press Enter..

    Does Windows Explorer support long paths?

    However, the long paths are not supported under File Explorer with the latest Windows version. That is the reason why it is not working even tweaking the registry and Group Policy.