Jump to content

Microsoft ends the 260 long path limit (sort of)


Batu69

Recommended Posts

Microsoft added a new feature to the most recent preview version of its Windows 10 operating system that resolves one of the longest standing issues that users experienced when using Windows: the 260 character limit.

 

The system that Windows uses by default has a limit of 260 characters which led to all kinds of issues including the inability to run operations on files stored under paths exceeding the limit, issues with the extraction of files, and issues with transferring files from systems that have no such limit.

 

Up until now all you could do was reduce the path to regain access to files, or use programs such as Long Path Fixer to resolve issues that you are experiencing.

Enable NTFS Long Path

ntfs long path

 

The latest Windows 10 Insider Preview ships with a new policy that does away with the 260 character limit, at least somewhat.

 

Its description reads:

Quote

Enabling NTFS long paths will allow manifested win32 applications and Windows Store applications to access paths beyond the normal 260 char limit per node. Enabling this setting will cause the long paths to be accessible within the process.

 

The caveat here is the term "manifested win32 applications". While most win32 applications since the days of Windows Vista are manifested, it is usually the case that the applications need to declare capabilities explicitly.

 

It seems likely that applications need to explicitly declare support for the feature before they can make use of it.

A quick test on a system after enabling the feature seems to confirm this. Still, getting that option is a step in the right direction especially if Microsoft implements support for it in File Explorer and other core Windows applications that could benefit from it.

 

How to enable support for long paths using the Group Policy Editor

Please note that the feature is currently only available as part of the latest Fast Ring Windows 10 Insider Build.

It seems likely that Microsoft will make it available with the Anniversary Update that it plans to release this Summer.

  1. Tap on the Windows-key, type gpedit.msc, and hit enter.
  2. Confirm the UAC prompt if it appears.
  3. Use the hierarchy on the left to navigate to the following policy: Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem > NTFS.
  4. Locate the Enable NTFS long paths policy and double-click on it.
  5. Switch its state to enabled.
  6. Click ok.

Using the Registry instead

You can enable the policy in the Registry directly as well.

  1. Tap on the Windows-key, type regedit.exe and hit enter.
  2. Confirm the UAC prompt.
  3. Navigate to the following key: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\{48981759-12F2-42A6-A048-028B3973495F}Machine\System\CurrentControlSet\Policies
  4. Check if the key LongPathsEnabled exists.
  5. If it does not exist, right-click on Policies and select New > Dword (32-bit) Value from the menu.
  6. Name it LongPathsEnabled.
  7. Set its value to 1 to enable the feature.

 

Article source

Link to comment
Share on other sites


  • Replies 1
  • Views 1k
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...