How to delete directories and files whose Windows path is too long (transfer)

Windows folders have a length limit, when the path is too deep and the length reaches more than 600 characters, an error occurs when deleting a file "The source file name is longer than the file system supports. Try moving it to a location with a shorter path name. , or try to rename it to a shorter name before doing this", Baidu has tried many ways or downloaded software either cannot delete it, or it prompts a virus, and finally found a solution

 

Enter on the command line: "robocopy test 20150916 /purge"

Note: with spaces, test and 20150916 write all paths

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326086087&siteId=291194637
Recommended