Computer >> Computer tutorials >  >> System >> windows

How to Enable or Disable Win32 Long Paths in Windows 11/10

Do you know that you can only have 260 characters in a path on Windows 11/10? If you are having issues with this limitation and searching for a way to enable Win32 Long Paths, this is the guide for you.

It is by default in Windows that you cannot access a path that is longer than 260 characters. That includes path and file name. You may see The file name(s) would be too long for the destination folder type of error messages. Now for a normal user, it is not a problem. But for some people who name their files with longer names, it will be a problem. The only solution for them is to enable NTFS or Win32 Long Paths in Windows 11/10.

How to Enable Win32 Long Paths in Windows 11/10

There are two ways we can use to enable or disable Win32 long paths in Windows 11/10.

    1. Through Regedit
    2. Through Local Group Policy Editor

Let’s see how we can enable or disable through them.

Make Windows accept File Paths over 260 characters

Enable Win32 Long Paths through Regedit

To enable Win32 long paths through Regedit-

  1. Open Regedit
  2. Paste the path for the file system folder
  3. Find the LongPathsEnabled DWORD file and double click on it
  4. Change to value from 0 to 1 and click OK

Let’s get into the details of the process.

Click on the Start Menu and type RegEdit. You will see Registry Editor in the results. Open it.

In the Registry Editor windows paste the following path to the FileSystem folder in the address bar and press Enter.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem

How to Enable or Disable Win32 Long Paths in Windows 11/10

In the FileSystem folder, find the LongPathsEnabled and double-click on it.

How to Enable or Disable Win32 Long Paths in Windows 11/10

You will see a small DWORD window. Change the value from 0 to 1 and click on OK to save the changes.

How to Enable or Disable Win32 Long Paths in Windows 11/10

It will enable long paths on your PC. If you want to disable it, you can change the value from 0 to 1 anytime.

Enable Win32 Long Paths through Local Group Policy Editor

To enable Win32 Long Paths through gpedit or Local Group Policy Editor,

  1. Search for gpedit and open it from the Start Menu or Run box
  2. Click on the Filesystem folder on the sidebar
  3. In the files of Filesystem, double-click on Enable Win32 long paths
  4. Check the radio button beside Enabled
  5. Click on OK to save the changes

Let’s get into the process of details.

Click on the Start Menu and search for gpedit.msc and open it from the search results.

In the Local Group Policy Editor window, go to:

System Configuration > Administrative Templates > System > Filesystem.

In the components of the Filesystem folder, double click on Enable Win32 long paths to open it.

How to Enable or Disable Win32 Long Paths in Windows 11/10

Then, in the Enable Win32 long paths window, check the radio button beside Enabled to enable long paths and click on OK at the bottom of the window to save the changes.

Enabling Win32 long paths will allow manifested win32 applications and Windows Store applications to access paths beyond the normal 260 character limit per node on file systems that support it. Enabling this setting will cause the long paths to be accessible within the process.

How to Enable or Disable Win32 Long Paths in Windows 11/10

It will enable long paths on your PC. You can disable the long paths anytime by checking the radio button beside Disabled.

TIP: Long Path Fixer tool will fix Path Too Long errors.

How to Enable or Disable Win32 Long Paths in Windows 11/10