Skip to content

Instantly share code, notes, and snippets.

@MeteSayan
Created September 20, 2023 15:23
Show Gist options
  • Save MeteSayan/d097574252659940396846695e751e5c to your computer and use it in GitHub Desktop.
Save MeteSayan/d097574252659940396846695e751e5c to your computer and use it in GitHub Desktop.
How to Change Windows 10 256 Character Path Limitation (MAX_PATH)

How to Change Windows 10 256 Character Path Limitation (MAX_PATH)

With Registry Editor (Regedit)

  1. Open the Windows Start menu and type Regedit in the search field.
  2. Right-click the Registry Editor and select Run as administrator.
  3. Open this path => "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem"
  4. Select the entry named: LongPathsEnabled (If you don't have it, I explained how to create it below.)
  5. In the Value data field, enter a value of 1. This will enable to long paths option.

If you don't have LongPathsEnabled entry

  1. Right-click the FileSystem folder.
  2. Select "DWORD (32-bit) Value" from the "New" tab.
  3. Name the key LongPathsEnabled.
  4. In the Value data field, enter a value of 1. This will enable to long paths option.

With Local Group Policy Editor (Gpedit.msc)

  1. Open the Windows Start menu and type Gpedit.msc in the search field.
  2. Right-click the Registry Editor and select Run as administrator.
  3. Open this path => Computer Configuration > Administrative Templates > System > Filesystem
  4. Double click to 'Enable Win32 long paths' to edit.
  5. Clict to 'Enabled' then click to 'OK'. This will enable to long paths option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment