TechBuzzPro

How to Enable Long File Paths in Windows 11

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can enable long file paths in Windows 11. This change allows applications and the operating system to handle file and folder names that exceed the traditional 260-character limit, preventing errors when working with deeply nested directories or lengthy file names.

What You'll Need

  • A Windows 11 PC with administrator privileges
  • Access to the Registry Editor or Group Policy settings
  • Note: Some older third-party applications may still have limitations even after this change is applied

Step-by-Step

  1. Open the Registry Editor: Press the Windows Key + R on your keyboard to open the Run dialog box. Type regedit and press Enter. If prompted by User Account Control (UAC), click Yes to allow the app to make changes.
  2. Navigate to the Correct Key: In the Registry Editor address bar at the top, paste the following path and press Enter: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem. Alternatively, you can manually browse through the left-hand pane to find this location.
  3. Create a New Value: Right-click on an empty space in the right-hand panel of the registry key. Select New > DWORD (32-bit) Value. Name this new value LongPathsEnabled.
  4. Enable the Setting: Double-click the newly created LongPathsEnabled entry. Ensure the "Base" is set to Hexadecimal. Change the "Value data" from 0 to 1. Click OK to save the change.
  5. Restart Your Computer: For the changes to take effect across the entire system, you must restart your computer. Save any open work and reboot your device.

Note: Menu labels and option names may differ slightly depending on your specific version of Windows 11 or regional settings. The steps above are accurate for standard Windows 11 installations.

Common Mistakes

  • Creating the Wrong Data Type: Ensure you create a DWORD (32-bit) Value, not a String Value or QWORD. Using the wrong type will prevent the setting from working correctly.
  • Skipping the Restart: Many applications only read these registry settings upon startup. Without a full system restart, the change may not apply to running processes.
  • Editing the Wrong Registry Key: There are multiple locations related to file systems. Ensure you are editing HKLM\SYSTEM\CurrentControlSet\Control\FileSystem, not other similar keys.
  • Assuming All Apps Will Work: Enabling long paths does not guarantee that every legacy application will support them. Some older software may still fail if it was not coded to handle extended-length paths.

Tips

  • Backup Your Registry: Before making any changes to the Windows Registry, it is wise to export the current key or create a system restore point. This allows you to revert changes if something goes wrong.
  • Use Command Line Tools: If you prefer using the command line, you can enable long paths by running the following command in an Administrator Command Prompt: reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem" /v LongPathsEnabled /t REG_DWORD /d 1 /f
  • Check Application Support: Before relying on long paths for critical workflows, test with your most frequently used applications to ensure compatibility.
  • Consider Folder Structure: While long paths are now supported, excessively deep directory structures can still impact performance in some scenarios. Organize files logically where possible.

Troubleshooting

If enabling long file paths did not resolve your issues, follow these steps to diagnose the problem:

Verify the Registry Entry: Return to the Registry Editor and confirm that LongPathsEnabled exists and is set to 1. If it is missing or set to 0, repeat the creation step.

Restart Again: If you recently changed the setting, ensure you have fully restarted your computer. Sometimes a simple sign-out and sign-in is insufficient; a full shutdown and power-on cycle is required.

Check Application Specifics: If a specific application still fails with long paths, check the developer's documentation. Some applications require their own internal settings to be enabled to support extended-length paths, regardless of the OS configuration.

File System Format: Ensure your drive is formatted as NTFS or ReFS. FAT32 and exFAT file systems do not support long paths in the same way and may continue to impose limits regardless of registry changes.

Group Policy Conflicts: On corporate or managed devices, Group Policy might override local registry settings. Contact your IT administrator to ensure no policies are blocking long path support.

Frequently Asked Questions

Does this change affect all drives?

Yes, once enabled via the registry, the long path support applies to all NTFS and ReFS volumes on the system, provided the file system supports it.

Will this fix errors in old software?

Not necessarily. While Windows will accept the paths, older applications that were not designed to handle strings longer than 260 characters may still crash or return errors. They need native support for long paths.

Is it safe to edit the registry?

It is generally safe if you follow the exact steps. However, always backup your registry or create a system restore point before making changes to avoid potential system instability.

Can I use PowerShell to enable this?

Yes, you can use PowerShell with administrative privileges to run the registry add command mentioned in the tips section. This is often faster than navigating the GUI.

Do I need to reinstall Windows to apply this?

No. A standard restart is sufficient. Reinstalling Windows is unnecessary and would erase your data, so avoid doing this unless you are troubleshooting a deeper system corruption.

Why did Microsoft remove the checkbox in newer updates?

In recent versions of Windows 10 and 11, Microsoft removed the graphical toggle from Settings but kept the underlying registry support. Editing the registry remains the reliable method to enable this feature globally.