PDF download Download Article
Easily fix the "path too long" error and get your files working again
PDF download Download Article

If you're getting an error that your file path is too long, you may be wondering how exactly to fix it. This issue commonly occurs when trying to unzip a file, though you may experience it when opening or creating a file or folder, as well. Windows has a maximum path length of 260 characters, but you can enable longer paths in the Registry Editor or the Group Policy Editor. You can also try simpler methods, such as renaming or moving the file. Keep reading to learn more.

Fixing the "Path Too Long" Error

Section 1 of 7:

Using a Command

PDF download Download Article
  1. To do this, type powershell into the taskbar search bar, then right-click on PowerShell in the Start menu and click Run as administrator.
  2. If you don't want to change the registry yourself, you can use a command to do it for you. Copy and paste New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force into the PowerShell window.
    Advertisement
  3. This will run the command, and your registry will be changed. You can now exit PowerShell.
  4. To make sure all applicable applications know that this registry entry has been changed, you'll need to restart your PC.[1]
    • Some applications may not have been modified to accept long paths. The developers of individual applications will need to declare that their apps are long path-aware.
    • Enabling long file paths won't let you create longer file paths in File Explorer. Jump ahead to see which third-party file managers work with longer paths.
  5. Advertisement
Section 2 of 7:

Using Registry Editor

PDF download Download Article
  1. If you don't want to use the command from the first method, you can also manually edit the registry yourself. To open the Registry Editor, type registry editor into the taskbar search bar and click Registry Editor.
    • Before editing the registry, make a backup. Editing the registry incorrectly can cause your computer to stop working properly.
  2. To do this, click the address bar at the top of the screen and highlight it. Copy and paste the following path into the address bar, then press Enter: Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem.
  3. Near the top of the list in the FileSystem folder, you'll see the "LongPathsEnabled" DWORD. Right-click it to open a menu.
  4. This will open a pop-up.
  5. Under the "Value data" heading, you'll see a text box that says 0. Click into this box and change the 0 to a 1.
  6. You can now close the Registry Editor.
  7. To make sure all applicable applications know that this registry entry has been changed, you'll need to restart your PC.[2]
    • Some applications may not have been modified to accept long paths. The developers of individual applications will need to declare that their apps are long path-aware.
    • Enabling long file paths won't let you create longer file paths in File Explorer. Jump ahead to see which third-party file managers work with longer paths.
  8. Advertisement
Section 3 of 7:

Using Group Policy Editor

PDF download Download Article
  1. To do this, type gpedit into the taskbar search bar, then click Edit group policy in the Start menu that pops up.
    • The Group Policy Editor can only be used if you have the Pro, Enterprise, or Education version of Windows. If you have the Home edition, you'll need to use the PowerShell method or Registry Editor method.
  2. To do this, double-click on the following folders in the left-hand sidebar in Group Policy Editor: Computer Configuration > Administrative Templates > System > File System.
  3. This will open a new window.
  4. In the upper-left corner of the screen, you'll see that there are three radio buttons: Not Configured, Enabled, and Disabled. Click the radio button next to "Enabled."
  5. You can now close the Group Policy Editor.
  6. To make sure all applicable applications know that the group policy has been changed, you'll need to restart your PC.[3]
    • Some applications may not have been modified to accept long paths. The developers of individual applications will need to declare that their apps are long path-aware.
    • Enabling long file paths won't let you create longer file paths in File Explorer. Jump ahead to see which third-party file managers work with longer paths.
  7. Advertisement
Section 5 of 7:

Unzipping the File with 7-Zip

PDF download Download Article
  1. Windows File Explorer and its built-in file extraction tool won't work if the path to your file exceeds 260 characters. One way to get around this is to use 7-Zip, a free third-party file extractor that can extract any type of compressed file.
    • To use 7-Zip, download it from their website (7-zip.org) and install it. Follow the on-screen instructions to get started.
    • When unzipping your file with 7-Zip, you may still run into issues accessing it if its path is too long. If this is the case, try an alternative file manager. Alternatively, you can move the file to a different location so it doesn't give you the error anymore.
  2. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Video

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!

You Might Also Like

File Too Large for Destination File SystemSolved: What’s the Cause of the “File Is Too Large for Destination” Error?
An Unexpected Error Is Keeping You from Copying the File Resolve “An Unexpected Error Is Keeping You from Copying the File”
The Requested Operation Requires Elevation8 Ways to Fix "The Requested Operation Requires Elevation" on Windows
Install FFmpeg on WindowsEasily Download and Install FFmpeg on a Windows PC
Map a Folder to a Drive Letter in Windows2 Simple Ways to Map a Folder to a Drive Letter on Windows
Change the PATH Environment Variable on Windows Change the PATH Environment Variable on Windows
You Need Permission to Perform This Action Fix 'You Need Permission to Perform This Action' on Windows
Extract a Gz File Extract a GZ File on Windows, Linux, Mac, & Mobile
Register a DLLRegister a DLL
Open 7z Files Open 7z Files: PC, Mac, Android, iPhone, ChromeOS
Show Hidden Files in Windows 7Show Hidden Files in Windows 7
Run a Batch File from the Command Line on Windows Execute a Batch File from the Command Line (CMD)
Invalid Value for RegistryEasily Fix “Invalid Value for Registry” on your Windows Computer
Solve the Lnk File Extension Problem in Windows Fix .LNK Extensions in Windows: 6 Easy Methods
Advertisement

About This Article

Carter Keel
Reviewed by:
Tech Expert
This article was reviewed by Carter Keel and by wikiHow staff writer, Hannah Dillon. Carter Keel is a tech expert and content creator based in Florida. In 2019, Carter launched his channel Random But Cool, refining his skills as a storyteller and video editor through this project. His production experience grew further through wedding videography, livestream switching, and managing media at multiple churches. His channel now focuses primarily on tech education, helping thousands of people stay safe online. He also specializes in building home servers and repurposing old hardware, combining sustainability with innovation. Carter is currently pursuing a bachelor’s degree in cybersecurity from the University of West Florida. This article has been viewed 1,124 times.
How helpful is this?
Co-authors: 2
Updated: June 10, 2026
Views: 1,124
Categories: Basic Computer Skills
Thanks to all authors for creating a page that has been read 1,124 times.

Is this article up to date?

Advertisement