Created
May 30, 2014 17:01
-
-
Save floydpink/3ec89ed63c08b3f3b8c2 to your computer and use it in GitHub Desktop.
Remove a directory on Windows that has folder/files with 'path too long'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Thanks to the answer on SuperUser - http://superuser.com/questions/45697/how-to-delete-a-file-in-windows-with-a-too-long-filename/467814#467814 | |
mkdir empty_dir | |
robocopy empty_dir the_dir_to_delete /s /mir | |
rmdir empty_dir | |
rmdir the_dir_to_delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment