3

I tried changing file name but it won't change. Tried moving and deleting. Tried deleting from cmd but it won't work.

arslion
  • 234
  • 2
  • 3
  • 9
  • @DavidPostill its not a dupkicate, i tried this answer but it also won't work, thats why i posted that question. – arslion Oct 31 '14 at 15:08
  • The second answer in that linked question is what I proposed. I hadn't seen it prior to answering though... – noonand Oct 31 '14 at 15:13
  • Then please next time you what you have already tried. Please read [How do I ask a good question?](http://superuser.com/help/how-to-ask): "Have you thoroughly searched for an answer before asking your question? Sharing your research helps everyone. Tell us what you found and why it didn’t meet your needs. This demonstrates that you’ve taken the time to try to help yourself, it saves us from reiterating obvious answers, and above all, it helps you get a more specific and relevant answer!" – DavidPostill Oct 31 '14 at 15:19
  • @DavidPostill kindly read my description of the question your clearly see that what i have done before posting a question. – arslion Oct 31 '14 at 15:26

2 Answers2

1

I remember running into this problem before due to a failed backup. It took me hours of searching before I came across this not-so-good solution (although it does work).

  1. Create a new user account.

  2. Move the file into that user account.

  3. Delete the account.

Another solution from Microsoft here.

Users in same situation here.

Rsya Studios
  • 3,626
  • 2
  • 17
  • 25
0

In the Windows API (with some exceptions), the maximum length for a path is MAX_PATH, which is defined as 260 characters.

However it is possible to create longer filenames, through a variety of means and that's what's happened here.

Fortunately unless you've specifically turned the option off, all files in Windows still have an 8.3 filename. This will have a ~ in it somewhere (e.g. in my system32 directory there's a file called {A6D608F0-0BDE-491A-97AE-5C4B05F7CDA2}.bat which has an 8.3 name of {A6D60~1.BAT (the first six characters of the filename, then a tilde, and then a number in case multiple files have the same first six characters).

  • Open a command prompt (cmd.exe)
  • Change to the relevant directory
  • Get this using the dir /x command
  • Then use that ~ filename to delete the file
Ben N
  • 40,045
  • 17
  • 140
  • 181
noonand
  • 257
  • 3
  • 14