Destination Path Too Long Error: 3 Fixes to Move/Copy Files Over 259 Characters

Frustrated by the destination path too long error when moving or copying a file in Windows? ⚡ I’ve wrestled with this exact frustration—especially when dealing with deeply nested folders or legacy software that can’t handle modern path lengths.

The root cause is Windows’ MAX_PATH limit of 260 characters, a relic from the DOS era that still trips up users today.

The good news? There are three battle-tested fixes that work without breaking your system. First, we’ll tackle quick workarounds like using shorter paths or symbolic links—no registry edits required. Then, for permanent relief, I’ll show you how to enable Windows’ long path support (yes, it’s built in but hidden).

Finally, if you’re dealing with stubborn files, third-party tools like PathCopy can handle what native Windows tools can’t.

You’ll walk away with methods that work for both one-time fixes and long-term workflows. The registry tweak alone cuts the 260-character limit to 32,767 characters, meaning even the most buried files will move without errors. Just be warned—some legacy apps might still choke, so test thoroughly after making changes.

Each solution includes step-by-step instructions, including command-line flags like /MT for robocopy and exact registry paths for the long path enablement. No more guessing—just working fixes that actually solve the problem. Let’s get those files moving again.

What Triggers Path Length Limits

When you encounter a “destination path too long” error while moving or copying files in Windows, it’s usually because the system hits a hard-coded limit on how long a file path can be.

Windows enforces this restriction for compatibility and stability reasons, but it can be frustrating when dealing with deeply nested folders or large projects. Below, we break down the key causes behind this error—so you can understand why it happens and how to work around it.

Windows’ MAXPATH limitation (260 characters)

The most common culprit is Windows’ MAXPATH limitation, a 32-bit legacy constraint that caps file paths at 260 characters (including the drive letter, like C:\). This limit was set in the early days of Windows to ensure backward compatibility with older software and hardware.

  • Why it fails: If your file’s destination path exceeds 260 characters—such as C:\Projects\2024\ClientData\Subfolder1\Subfolder2\...\FinalFile.txt—Windows throws the error because it can’t process the full path.
  • Example scenario:
    Drive Letter (e.g., C:\) Folder Structure Filename Total Characters
    C:\ LongFolderName1\LongFolderName2\... (100+ chars) VeryLongDocument_2024_v3final.pdf 265+ characters → Error!
  • Pro tip: 💡 Use dir /x in Command Prompt to see short (8.3) filenames, which can sometimes bypass the limit.

Deeply nested folder structures

If your files are buried in multiple subfolders, each with long names, the cumulative path length can quickly spiral out of control. Even if individual folders aren’t long, their combination may exceed 260 characters.

  • Why it fails: Windows calculates the full path from the root (e.g., C:\) to the file. For example:
        C:\
          ├── MyDocuments\
          │   ├── 2024Q1Reports\
          │   │   ├── ClientASalesData\
          │   │   │   ├── JanuaryAnalysis\
          │   │   │   │   ├── FinalReportVersion3.pdf  ← Total: 270+ chars
        
  • Actionable fix: 🔥 Shorten folder names (e.g., Q12024 instead of FirstQuarterFinancialReports2024) or restructure your directory tree.

Unicode characters or special symbols

While Windows supports Unicode, certain characters—like spaces, hyphens, or non-ASCII symbols—can inflate path lengths when encoded. For example, a single emoji (📁) or a long filename with accents (Résumé.pdf) can add unexpected characters to the total count.

  • Why it fails:
    • Spaces in filenames add 1 character per space (e.g., My File.txt = 10 chars vs. MyFile.txt = 8 chars).
    • Unicode characters (e.g., é, ñ, 📄) may use 2+ bytes per character, increasing the path length beyond what you see.
  • Quick test: 🌡️ Use wmic path win32logicaldisk get size,freespace to check disk encoding, but focus on renaming files to ASCII-only names (e.g., Report_Q1_2024.pdf).

Next up: We’ll cover three proven fixes to bypass this limit—whether you’re using built-in tools, third-party software, or manual workarounds. Stay tuned! 🚀

How to solve it

Encountering a “destination path too long” error when moving or copying files in Windows can be frustrating—especially when you’re in a hurry. The good news? There are practical ways to bypass this limitation without complex workarounds.

Below, we’ve mapped the most common causes to their fixes, so you can get back to managing your files without delays.

###

🔥 1. Shorten the Destination Path (Most Common Fix)

The error occurs because Windows has a 260-character limit for file paths (MAXPATH). If your destination folder’s path exceeds this, the system blocks the operation. Here’s how to fix it:

  • 📁 Move the file to a shorter path:
    1. Copy the file to a root directory (e.g., C:\Temp or D:\Files) instead of a deeply nested folder.
    2. Use the Address Bar in File Explorer to manually type a shorter path (e.g., C:\Short\Path\ instead of C:\Users\YourName\Documents\Long\Subfolders\Project\).
  • ✂️ Trim the folder name:
    • Rename the destination folder to something shorter (e.g., Project instead of 2024Q3MarketingCampaignDrafts).
    • Use abbreviations or numbers (e.g., Q3Marketing).

💡 Pro Tip: Bookmark frequently used short paths in File Explorer’s Quick Access for faster access.

###

🍳 2. Use Command Prompt or PowerShell (For Tech-Savvy Users)

Windows’ built-in command line tools can bypass the 260-character limit with a simple flag. Here’s how:

  • 🔧 Enable long paths in Windows:
    1. Open Registry Editor (Win + R → type regedit → press <Enter>).
    2. Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
    3. Double-click LongPathsEnabled (create it if missing), set its value to 1, and restart your PC.
  • 👨‍🍳 Copy via Command Prompt:
    1. Open Command Prompt as Admin (Win + X → Terminal (Admin)).
    2. Use the copy command with the /Y flag to overwrite files: copy "C:\Very\Long\Source\Path\file.txt" "D:\Destination\Folder\file.txt" /Y

⚠️ Warning: Editing the registry can affect system stability. Backup first or use PowerShell for safer long-path handling:

Copy-Item -Path "C:\Very\Long\Source\Path\file.txt" -Destination "D:\Destination\Folder\" -Force

###

🔪 3. Use Third-Party Tools (No Registry Tweaks Needed)

If manual fixes aren’t cutting it, specialized tools can handle long paths seamlessly. Here are two top picks:

Tool How It Works Best For
Teracopy Bypasses MAXPATH limits with a simple right-click option. Supports resuming interrupted transfers. Drag-and-drop simplicity, large file transfers.
Robocopy (Built-in) Use the /J flag to create directories on demand and avoid path limits: robocopy "C:\Source" "D:\Destination" /E /ZB /R:1 /W:1 /J Automated backups, bulk transfers.

🎯 Bonus: Tools like Everything (by voidtools) can search and access files in long paths without errors.

###

⏰ Prevent Future Errors (Long-Term Fixes)

Stop the frustration before it starts with these habits:

  • 📂 Organize files in flat structures:
    • Avoid nesting folders more than 3–4 levels deep.
    • Use a hybrid approach: Keep root folders broad (e.g., Work, Personal) and subfolders minimal.
  • 🔗 Store files in cloud or network drives:
    • OneDrive, Google Drive, or NAS devices often handle long paths better.
    • Sync critical folders to avoid local path limits.
  • 🌡️ Monitor path lengths:
    • Use PowerShell to check path lengths: Get-ChildItem -Recurse | Select-Object FullName, @{Name="Length";Expression={$.FullName.Length}}
    • Set a warning threshold (e.g., 200 characters) to reorganize early.

✨ Final Tip: For developers, consider symbolic links (mklink) to redirect long paths to shorter aliases.

Frequently asked questions

1

Why does Windows show “destination path too long” even when the folder name isn’t extremely long?

Windows counts all characters in the full path, including drive letters (like C:\\), backslashes, and folder names. For example, a path like C:\\Users\\YourName\\Documents\\Project\\Subfolder\\File.txt might look short but easily exceeds 260 characters when combined. Even spaces and special characters add to the total count. Use dir /x in Command Prompt to see short (8.3) filenames that might help bypass the limit.

2

Can I fix this error without using Command Prompt or third-party tools?

Yes! The simplest fix is to shorten the destination path by moving files to a root directory (like C:\\Temp) or renaming overly long folders. For example, replace 2024_Q3_MarketingCampaign with Q3Marketing. This avoids registry edits or command-line work entirely. Always test with a small file first.

3

Is enabling “LongPathsEnabled” in the registry safe for all Windows versions?

While it works on Windows 10 (version 1607+) and Windows 11, some legacy software may still fail with long paths. Always back up your registry before editing. For extra safety, test the change on non-critical files first. If issues arise, revert by setting LongPathsEnabled back to 0 or restore your backup.

4

What’s the best tool for bulk copying files with long paths?

For automated transfers, use Robocopy with the /J flag to create directories on demand. Example: robocopy "C:\\Source" "D:\\Destination" /E /ZB /R:1 /W:1 /J. For drag-and-drop ease, try Teracopy, which bypasses the 260-character limit natively. Both are free and reliable for large operations.

5

Will moving files to a cloud service (like OneDrive) avoid this error?

Yes! Cloud services often handle long paths better than local drives. Upload files directly to OneDrive, Google Drive, or a NAS (Network-Attached Storage) to bypass Windows’ MAXPATH limitation entirely. Just ensure your internet connection is stable for large files. This is a great long-term solution for projects with deep folder structures.

★★★★★5.0(6 reviews)
Michael Davis