Enabling long paths in Windows 11 lets compatible programs work with file and folder paths that exceed the traditional 260-character limit. It can help with deeply nested folders, large project trees, and archives that unpack into long directory names. The setting does not remove every path limit or make older programs compatible, so check the application you use as well. You will need an administrator account, and you should save your work before changing a system setting.
What You’ll Need
- A Windows 11 account with administrator privileges. You may be asked to approve a User Account Control prompt.
- Access to either Local Group Policy Editor or Registry Editor. Group Policy Editor is available on many Pro, Enterprise, and Education editions, but is usually absent from Windows Home.
- A restart, or at minimum a full restart of the affected application, after changing the setting.
- A program that supports long paths. Windows must be configured for long paths, and the program itself must also use Windows APIs and declare support for them.
Step-by-Step
-
Check whether the setting is already enabled. If a particular application is failing, note its exact error and the path involved before changing anything. Long paths are measured across the full path, including folder names and the file name, not just the final file name. A path that works in one application can still fail in another because support is application-dependent. You can proceed with the configuration below even if you are not sure whether the setting is currently on.
-
Choose a configuration method. Use Local Group Policy Editor if it is present and you prefer a Windows settings interface. Use Registry Editor if you are running Windows Home, or if you prefer the direct registry setting. Both methods configure the same Windows feature; do not change both just to make the setting stronger. If this is a work-managed computer, check with your IT administrator first because an organization policy may control or reset the value.
-
Enable long paths with Group Policy, if available. Press
Windows + R, typegpedit.msc, and press Enter. In Local Group Policy Editor, open Computer Configuration > Administrative Templates > System > Filesystem. Find Enable Win32 long paths in the right pane and open it. Select Enabled, choose Apply, and then choose OK. This is a computer-wide policy, so it is configured under Computer Configuration rather than User Configuration. Close the editor when finished. -
Or enable long paths in the registry. If you are using Windows Home or prefer this method, open Start, search for
Registry Editor, right-click it, and choose Run as administrator. Approve the prompt. In the address bar, enterHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemand press Enter. In the right pane, look for a DWORD (32-bit) value namedLongPathsEnabled. If it exists, double-click it and set Value data to1, leaving the base as Hexadecimal or Decimal; the value is 1 either way. If it does not exist, right-click an empty area of the right pane, choose New > DWORD (32-bit) Value, name itLongPathsEnabled, and set its value to1. Close Registry Editor. The DWORD type is correct on both 32-bit and 64-bit Windows. -
Restart Windows. Restart the computer after either method, particularly if you are troubleshooting an application that was already open. Some processes read the long-path setting when they start and keep that information in memory. Restarting only the application may be enough in some cases, but restarting Windows is the most reliable way to ensure new processes use the updated configuration. Save open documents and close programs before restarting.
-
Test the actual application and path. Reopen the program that produced the error and repeat the operation using the same file or folder. If possible, test with a copy of the data rather than moving or renaming your only copy. A successful test in one app does not prove that every app on the computer supports long paths. If the same failure remains, try a shorter location such as
C:\Work\Projectto determine whether path length is the cause, then use the troubleshooting section below. -
Turn the setting off only if you have a reason. To reverse the Group Policy change, return to Enable Win32 long paths and select Disabled or Not Configured. To reverse the registry method, set
LongPathsEnabledto0, or remove the value if you created it solely for this change. Restart Windows again. Disabling the feature can restore traditional behavior for supported applications, but it does not shorten existing file paths or repair files that a program cannot access.
Common Mistakes
- Expecting every program to gain support automatically. The Windows setting allows compatible Win32 applications to use longer paths; it does not rewrite older software. A program may still impose its own limit or use older file-handling functions.
- Changing the wrong registry location or value type. The value belongs at
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystemand must be a DWORD named exactlyLongPathsEnabled. A similarly named value under another key will not enable this feature. - Forgetting to restart. Testing an application that was already running can make it seem as though the change did nothing. Restart Windows, then launch the program again.
- Confusing the full path with a component limit. This setting does not permit an unlimited name for one file or folder. File systems and applications can have separate limits on an individual path component, so a single extremely long folder name may fail even when the total-path setting is enabled.
- Assuming a long-path error is always caused by Windows. Invalid characters, insufficient permissions, a disconnected drive, a locked file, or a damaged archive can produce similar failures. Read the full error and test a shorter path to isolate the cause.
Tips
- Keep deep folders shallow where practical. Moving a project closer to the drive root, for example from
C:\Users\Name\Documents\Company\Department\Year\ProjecttoC:\Work\Project, can help both compatible and older applications. It is often the quickest workaround when a single tool does not support long paths. - Use the same test path across programs. Try the same file in the application that failed and in a current, known-compatible tool. If one can open it and the other cannot, that points toward an application limitation rather than a Windows-wide setting issue.
- Check both the source and destination. Copying, extracting, syncing, or backing up can fail because either side contains a long path. A short destination folder does not necessarily fix a source path that the program cannot read.
- Be cautious with registry changes. If you are unfamiliar with Registry Editor, use Group Policy where available or ask an administrator for help. Before editing the registry, you can select the FileSystem key and use File > Export to save a backup of that key.
- Keep Windows and the application current. Newer application versions may add long-path support or improve error handling. Check the publisher’s documentation or release notes if the application continues to reject paths after Windows is configured.
Troubleshooting
If the change does not solve the problem, check the configuration and narrow down where the limit applies. Do not keep editing unrelated registry values; first confirm that Windows has the intended setting and then test a shorter path.
- Group Policy Editor is missing. This is normal on many Windows 11 Home installations. Use the Registry Editor method instead. Do not download unofficial policy-editor installers; they are not required to enable this setting.
- The setting appears enabled, but the app still reports that the path is too long. Confirm that
LongPathsEnabledis set to1, or that the policy says Enabled, and restart Windows. Then check whether the specific application supports long paths. If its documentation does not confirm support, shorten the path or contact the software publisher. - The value keeps changing back. A work or school device may receive settings from domain or mobile-device management. Ask the administrator to check the applicable policy. On a personal PC, check Group Policy if available; a policy setting can take precedence over a manually edited registry value.
- Only one folder or file fails. Check for a very long individual folder or file name, unusual characters, or a path on a network share or removable drive. Try copying a test file to a short local folder such as
C:\Temp. If that works, investigate the original path, storage location, or application rather than changing the system setting again. - File Explorer or a command-line tool still struggles. Long-path support varies by program and by the operation being performed. Try a different current tool that documents support, or temporarily move the data to a shorter path. The Windows switch is not a universal bypass for every shell, script, backup utility, or third-party integration.
- You cannot edit the registry. Sign in with an administrator account or ask an administrator to make the change. Avoid changing ownership or permissions on system registry keys to get around access controls; those controls protect Windows configuration.
Frequently Asked Questions
What does enabling long paths actually change?
It enables Windows support for longer Win32 paths for applications that opt in and use compatible APIs. It does not raise every limit in Windows or guarantee that all software can open, save, copy, or delete long-path files.
Does this work on Windows 11 Home?
Yes. The Local Group Policy Editor may not be included with Home, but you can set the LongPathsEnabled DWORD to 1 in Registry Editor using the steps above. You need administrator access.
Do I need to restart my computer?
Restarting Windows is recommended. Some programs read the setting when they start, so at minimum close and relaunch the affected program after making the change. A full restart is the clearest way to retest.
Will this fix every “path too long” error?
No. The application must support long paths, and other limits may apply to a file name, folder name, file system, or network location. A shorter directory structure is a useful workaround when the program does not support the feature.
Can I enable long paths with a command?
From an elevated Windows Terminal or Command Prompt, you can run reg add HKLM\SYSTEM\CurrentControlSet\Control\FileSystem /v LongPathsEnabled /t REG_DWORD /d 1 /f. This writes the same registry value as the manual method. Restart Windows afterward, and use this command only if you understand that it changes a system-wide setting.