Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File extension too long
#3
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.
Reply


Messages In This Thread
File extension too long - by KajitiSouls - 2009-05-07, 01:10 AM
File extension too long - by butterfλi - 2009-05-07, 01:33 AM
File extension too long - by Spaz - 2009-05-07, 01:33 AM
File extension too long - by rassilon - 2009-05-07, 01:44 AM
File extension too long - by KajitiSouls - 2009-05-07, 02:09 AM
File extension too long - by Spaz - 2009-05-07, 09:43 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)