WinRAR “Total path and file name length must not exceed 260 characters” [closed]

StackOverflow https://stackoverflow.com/questions/13178377

  •  25-07-2021
  •  | 
  •  

Question

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?

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top