2009-05-07, 01:33 AM
KajitiSouls Wrote:In what seems like a classical case of a spell gone wrong, I accidentally created a file that had a name 70+ characters long! It's also a file that I don't want >_>
Here's what I tried:
- Right-clicking on it. Apparently the delete option doesn't come up >_>
- Dragging it to the Recycle Bin. "File name or extension is too long"
- CMD's del and rename command.
- Change the name. Vista complains and makes a dinging noise instead >_>
- Deleting the folder it is located in. At least it's in the Recycle Bin now. Everything above didn't work here either.
...help? =(
Ideas:
- If the file path contains spaces, make sure you enclose the path in quotes when doing a command-line delete!
- Get the file in a directory all by itself and do a command-line del "c:\directory\*" to delete all files in the directory.
- Try using command-line del but refer to the file by its short name, <first 6 characters of name>~1.<extension>. veryveryverylongfilename.txt -> veryve~1.txt
- Try using command-line del but refer to the file using extended length syntax: del "\\?\C:\directory1\directory2\veryveryveryverylongfilename.txt"
I'm going to take a guess and say the total file path is over 260 characters.

