Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save gauravbarthwal/f6bfa7278af88e6e0580 to your computer and use it in GitHub Desktop.
Save gauravbarthwal/f6bfa7278af88e6e0580 to your computer and use it in GitHub Desktop.
How to delete a directory which contains filename more than 255 characters
Create a new empty folder, e.g. c:\empty
Then copy that empty folder onto the folder which contains the long filenames which you're trying to delete, e.g. c:\myannoyingfolder. Do this like so in the command prompt:
robocopy /MIR c:\empty c:\myannoyingfolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment