windows删除文件报错The source filename are larger than is supported by the file system

Error:The source filename are larger than is supported by the file system···

解决方法:

you want to delete a tree D:\very\long\path, you don’t necessarily need to use any tools such as Robocopy.

  • Go to the root directory of the drive which contains the directory which you can’t delete
  • Create a directory with a single letter name, eg D:\a,Navigate to inside the directory that you want to delete, in this caseD:\very\long\path
  • Select all (Ctrl+A) and Cut (Ctrl-X)
  • Navigate to the folder you just createdPaste (Ctrl-V)
  • now, move up to the root directory and delete the temp folder, in this caseD:\a
  • Then go back and delete the original directory