Delete Filename /Files Longer Than 255 Characters

It's always tedious delete long files that have more then 255 characters.
Here's the solution.

1) Get into the Command Prompt.
2) Type "Dir /X" - displays the directories and files in short filename format
3) Type "rmdir /s /q {Path to the directories or files you want to del"
e.g. rmdir /s /q C:\ShortF~1
- This would delete the ShortF~1 directories including the sub-directories.

Do try this with caution! As you won't want to mistakenly delete any important stuff. :P
Post a Comment