Search code examples
winrar

WinRAR "Total path and file name length must not exceed 260 characters"


WinRAR is giving me the 260 character limit error on a path/filename that is only 216 characters long. See below. The reason is the extraction destination is a temporary folder that is tool long. See https://superuser.com/questions/154969/where-winrar-extracts-files for details on this folder.

!   C:\<path>\<filename.rar>: Cannot create <filename>
Total path and file name length must not exceed 260 characters

How do I modify this?


Solution

  • You can change Winrar's default temp directory from Winrar's Options > Settings > Paths tab. Thanks to https://superuser.com/questions/154969/where-winrar-extracts-files for the solution.

    For the shortest path possible, set it to c:/ or some other driver's root. Pay attention to the temporary folders it will create (and not delete) that starts with "RAR..." or "Rar...". You can delete this once WinRAR is done.