How to fix ERROR_FILENAME_EXCED_RANGE (206)

Description

The filename or extension is too long. This error occurs when the full path of a file at the source or destination exceeds the maximum length supported by Windows or the destination file system. Traditionally Windows limits paths to 260 characters (MAX_PATH), and individual file or folder names are limited to 255 characters.

Causes

  • Destination path is longer than the source — copying a deeply nested folder into another deep folder adds characters to every path and pushes some files over the limit.
  • Very long file or folder names — names longer than 255 characters, often created by downloads, email attachments, or on macOS/Linux systems.
  • Long paths not enabled — the Windows long path support setting is turned off, so programs and components that rely on it are limited to 260 characters.
  • Destination file system or device limits — some NAS devices, FAT32 drives, cloud sync folders, and older SMB servers have stricter limits on name or path length.
  • Non-ASCII characters — on some destinations, accented or Asian characters take several bytes each and reach the name limit sooner.

Solutions

  1. Copy to a shorter destination path — choose a destination closer to the root of the drive, for example D:\Backup instead of a deeply nested folder.

  2. Shorten folder or file names — rename long folders near the top of the tree, or shorten the names of the files that fail.

  3. Map a drive letter to a deep folder — use subst X: "C:\very\long\path" or map a network drive directly to a deep folder to shorten the paths seen by the transfer.

  4. Enable long path support — on Windows 10 and 11, open gpedit.msc and enable Computer Configuration → Administrative Templates → System → Filesystem → Enable Win32 long paths, or set the registry value HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled to 1, then restart.

  5. Check destination limits — if copying to a NAS, cloud folder, or FAT32 drive, check its name and path length limits and rename files accordingly.