Skip to content

Instantly share code, notes, and snippets.

@ProNotion
Last active May 12, 2016 18:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ProNotion/36ede4f5464412e9ea64045740de1661 to your computer and use it in GitHub Desktop.
Save ProNotion/36ede4f5464412e9ea64045740de1661 to your computer and use it in GitHub Desktop.
How to Delete Files which exceed 255 Characters on Windows e.g. long filenames
robocopy /PURGE <empty_dir> <directory_to_remove>
@ProNotion
Copy link
Author

This works a treat, I've been stuck for literally years with some folders because I can't remove them from some of my old drives. I encounter the problem more and more often now and almost always because of the node_modules folder in projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment