This guide will explain how to enable long path support in Windows 11, solving the "path too long" error issues that occur during operations such as copying, moving, or deleting files with nested paths in many subfolders. This 260-character limit is a legacy of old Windows system APIs and can cause problems even with applications like VLC or Microsoft Office.
Long path support was introduced by Microsoft starting with Windows 10 version 1607, but it is disabled by default. Enabling this feature is useful to avoid unexpected errors during common operations, such as cloning Git repositories or working with complex directory structures.
This guide is aimed at technical users of Windows 11 Pro, Enterprise, Education, and Home who want to solve the "path too long" problem and improve file management in their operating system.
Prerequisites
- Operating system: Windows 11 Pro, Enterprise, Education, or Home
- Administrative access: Administrator permissions to modify system settings
- Group Policy Editor (Pro, Enterprise, Education only): Tool available via gpedit.msc
PROCEDURE: Enabling long paths on Windows 11
By the end of this guide, you will be able to enable long path support on Windows 11, solving errors related to "path too long" during operations such as copying, moving, or deleting files.
For Windows 11 Pro, Enterprise, or Education
- Press the Win key, type gpedit.msc, and press Enter.
- Navigate to Computer Configuration → Administrative Templates → System → File System.
- Double-click on "Enable Win32 long paths".
- Select Enabled, click Apply, and then OK.
- Restart the PC to apply the changes.
For Windows 11 Home
- Navigate to HKLM\SYSTEM\CurrentControlSet\Control\FileSystem.
- Set the value to 1 and click OK.
- Restart the PC.
VERIFICATION AND TROUBLESHOOTING: How to test if it works and what to do if it fails
After enabling long paths on Windows 11, it is important to verify that the change was successful and know how to proceed if there are issues.
Testing the activation of long paths
- Copy or move files with long paths: Try copying or moving files with paths that exceed 260 characters. If the operation is completed without errors, long path support is active.
- Opening files in specific applications: Open files with long paths in applications like VLC or Microsoft Office. If no errors appear, the configuration is correct.
- Cloning Git repositories: Try cloning a Git repository with a complex directory structure. If the process completes without errors, long path support is active.
Troubleshooting
- Checking the value in the Registry: If activation does not seem to work, open the Registry Editor (regedit) and navigate to HKLM\SYSTEM\CurrentControlSet\Control\FileSystem. Ensure that the LongPathsEnabled value is set to 1.
- Restarting the system: If the changes do not seem to take effect, restart the computer to ensure that the settings are applied correctly.
- Checking the Windows edition: Ensure you are using an edition of Windows 11 that supports enabling long paths (Pro, Enterprise, or Education). If you are using Windows 11 Home, follow the alternative procedure via the Registry Editor.
If the problem persists after following these steps, consult Microsoft's official documentation or search for additional solutions online.
By the end of this guide, you will have enabled long path support on Windows 11, definitively solving the "path too long" error problem.
This change is particularly useful for those working with nested files in complex directory structures, cloning Git repositories, or using applications like Microsoft Office and VLC.
- Try copying, moving, or deleting files with long paths to verify that the operation is performed without errors.
- Open files located in deeply nested folders to ensure that applications handle them correctly.
Always keep a backup of your system before making changes to the Registry, especially if you are using Windows 11 Home.
If you need more guides on how to optimize Windows 11, visit the Smartworld website.
Editorial Note and Disclaimer
The guides and content published on GoYou are the result of independent research and analysis activities, for informational, educational, and in-depth purposes.
GoYou does not constitute a journalistic publication or an editorial product pursuant to Law No. 62/2001 and does not provide real-time information.
The GoYou project does not provide professional, technical, legal, or financial advice and disclaims any liability for the improper use of the information published.
In the Crypto sector, every investment involves risks: readers are invited to always inform themselves independently before making any decision.