In this guide
Appearance
Appearance
By Scot, 10+ years in IT support and helpdesk ·How these guides are checked
Shorten the whole path, not the file name. Rename a folder high up the tree to something shorter, or move the folder to the root of your C: drive and work on it there. Windows counts everything from the drive letter to the file extension against a 260-character limit.
Checked against Microsoft 365 Roadmap, Microsoft Learn - Windows release health and between 5 Aug 2026 and 12 Sep 2026. Nothing published in that period has been linked to this guide.
Windows refuses to create, copy, or rename a file when its full path passes 260 characters — and the path is measured from the drive letter, not from the file name. This article shows you how to find the length, remove it by renaming or relocating folders, get files moved through a ZIP or Robocopy when File Explorer gives up, and what to send IT if the long path setting genuinely needs turning on.
The file name(s) would be too long for the destination folder.The specified path, file name, or both are too long.Path too long or File name or path too long.In this guide
Before you move anything, measure what you are dealing with. Knowing you are 30 characters over is a different job from being 150 over.
C:\Users\jsmith\OneDrive - Contoso\Projects\2026\Northwind Regional Expansion\Deliverables\Phase 2 Final.Note: OneDrive and SharePoint allow 400 characters, but the synced copy on your PC still sits inside a Windows folder such as
C:\Users\jsmith\OneDrive - Contoso\. That prefix alone is around 40 characters before your own folders start, which is why the 260-character Windows limit is what you hit first — and why this error surfaces on synced folders far more often than on anything else.
This is the fastest real fix. One rename near the top of the tree removes those characters from thousands of paths at the same time.
Northwind Regional Expansion Programme becomes Northwind, which recovers 28 characters from every file inside it.Tip: Rename folders rather than files wherever you have the choice. A file name change helps one file; a folder name change helps everything beneath it, and it does not break links to individual documents that colleagues have already saved.
Verification: Repeat Step 1 on the renamed tree. The Col count in Notepad is now below 258.
When the tree above your folder belongs to someone else and renaming is off the table, take the folder out of the tree instead.
Temp. The full path is now nine characters.C:\Temp and press Ctrl + V. The folder moves across with everything inside it, and every file inside instantly loses the entire old leading path.Note: If the move itself fails with the same Destination Path Too Long message, File Explorer cannot read the source either. Skip to Step 5 or Step 6 — both reach files that File Explorer has given up on.
You do not always have to move the files. Shortening the route to them works equally well, and none of these options need admin rights.
Map a network drive. A share reached as \\fileserver01\Departments\Finance\Reporting costs 46 characters on every path beneath it. Mapped to a drive letter, it costs three.
P: or whichever letter you picked, and paths beneath it are measured from there. Full instructions are in How to Map a Network Drive and Access Shared Folders on Windows.Substitute a drive letter for a local folder. The same trick works on your own hard disk.
cmd, and open Command Prompt. A standard window is fine — this needs no admin rights.subst followed by a spare drive letter and the folder path in quotation marks, then press Enter:subst X: "C:\Users\jsmith\OneDrive - Contoso\Projects\2026\Northwind Regional Expansion"subst X: /d and pressing Enter. The drive letter disappears. It also disappears on its own when you restart.Use Add shortcut to My files instead of syncing a deep library. A SharePoint library synced the old way lands inside a long C:\Users\...\Contoso\Team Site - Documents\ path. A shortcut lands at the top of your OneDrive instead.
A ZIP archive records each file's path relative to the folder you compressed, so the giant leading path stops travelling with the files.
.zip file appears beside the folder with the name selected and ready to edit. Type a short name and press Enter.C:\Temp before clicking Extract. The contents land with a nine-character prefix instead of the original hundred-plus.Note: If compressing fails partway through with a path error, the tree is too deep for the built-in ZIP tool as well. Shorten one folder name first with Step 2, then compress again — removing 20 characters is often enough to get the archive built.
Robocopy ships with every copy of Windows, runs as a standard user, and handles paths that File Explorer refuses to open. Use it when a folder will not budge any other way.
cmd, and open Command Prompt.robocopy "C:\Users\jsmith\OneDrive - Contoso\Projects\2026\Northwind Regional Expansion" "C:\Temp\Northwind" /EC:\Temp\Northwind in File Explorer and confirm your files are there before you delete anything from the original location.Tip:
/Ecopies the folder and every subfolder, including empty ones, and leaves the originals untouched. Copy first, verify, then delete the source by hand. That order costs you two minutes and removes any chance of losing the only copy.
Windows 10 version 1607 and every version since carry a setting that lifts the 260-character limit. It is worth requesting for a team that genuinely works this deep — with realistic expectations attached.
Note: Nothing about this setting is available to a standard user account, and there is no per-folder version of it. If a colleague tells you to edit
HKEY_LOCAL_MACHINEin the registry yourself, the change is blocked for your account and the attempt is logged. The ticket in Step 1 is the route.
WARNING
Copy files out of a deep folder and confirm they arrived before deleting anything from the original location. Robocopy has a /MOVE option that deletes the source as it goes, and a deletion from a network drive or a folder outside OneDrive does not always land in a Recycle Bin you can reach. Use /E as shown in Step 6, check the results, then remove the originals yourself.
| Symptom / Error | Potential Cause | Solution |
|---|---|---|
The file name(s) would be too long for the destination folder | Destination path plus file names exceed 260 | Extract or copy into a short folder such as C:\Temp (Step 3), or shorten a folder name at the destination (Step 2). |
| File will not rename or delete, no error given | File Explorer cannot open the path at all | Use subst to give the parent folder a drive letter (Step 4), then rename or delete from there. |
OneDrive shows a red circle and Path too long | Synced path over 260 locally, or over 400 in the cloud | Shorten a folder name near the top of the synced tree (Step 2). For other sync errors, see How to Fix OneDrive Sync Problems — Pending, Stuck, or Files Not Uploading. |
| Renaming the folder is blocked | The folder belongs to another account or a share | Check what access you hold before assuming it is the path — see How to Fix "You Need Permission to Perform This Action". |
| Compressing to ZIP fails partway through | Source tree too deep for the built-in tool | Shorten one folder name (Step 2), then compress again. |
| Error persists after IT enabled long paths | The app itself is not long-path aware | File Explorer and older apps still stop at 260. Shorten or relocate the folder (Steps 2 and 3) — that works in every app. |
IT Tip Tuesday
Get a short, actionable IT tip in your inbox every week.
Nothing loads from beehiiv until you click. Once it does, the form sets beehiiv's own cookies and loads beehiiv's own analytics.