You can enable enable Long Path Support in Windows 10. Starting in version 1607 'Anniversary Update', the 260 character limitation for NTFS path length issue is resolved. That path length limitation has been present on Windows since very first versions.
By default Windows 10 has a maximum file path length of 260 characters. All Windows file systems have the concept of files and folders to access stored data. Path is a string value indicating where this data is stored. However, there is a 260 character limit for paths imposed by Windows, which includes a drive letter, a colon, a separating backslash, and a null terminator. This limitation is not for the NTFS file system, but for the legacy APIs that are used to access data. There are also workarounds, such as accessing Unicode (or "wide") versions of Windows API functions, and prefixing the path with \\?\.
At the end-user level, some users may have experienced an issue in the past where File Explorer will not allow access to a file or folder if the path is longer than 260 characters. Thinking about one of Windows' long-term concerns, Microsoft has finally added a feature that will ultimately address the long-term 260 character limitation issue.
This tutorial will show you how to enable the Long Path support for NTFS in Windows 10.
Enable Long Path Support in Windows 10
- Open command prompt as Administrator.
reg add "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1and hit Enter.
- Restart Windows 10.
- You have enabled the Long Path support in File Explorer.
From now File Explorer will be able to handle paths longer than 260 characters. Keep in mind that the change won't affect all apps. While File Explorer comes with full support for long paths on NTFS, other apps may have issues unless their developers inlcude support for it.
If your Windows 10 include the
gpedit.msc tool, you can use it instead. It is only available in Pro, Education and Enterprise versions of the operating system.
Enable Long Paths for File Explorer in Group Policy
- Press Win + R keys together on your keyboard and type:
gpedit.msc. Hit Enter.
- Expand the left panel to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem.
- Double click option Enable Win32 long paths in the right panel.
- Restart Windows 10.