Link to home
Start Free TrialLog in
Avatar of cmkeur
cmkeurFlag for United States of America

asked on

500 Character filename cannot delete

One of my users has been infected with a virus.  All traces of virus have been cleaned with the exception of a file in thier "my doc" folder.  The filename is about 500 characters long.  I can't rename or delete for obvious reasons.  Any suggestions on how to remove?
ASKER CERTIFIED SOLUTION
Avatar of war1
war1
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cmkeur

ASKER

war1, neither solution worked.  any other ideas?

sirbounty, windows can not delete a file whos name is longer than 256 characters.
Correct, this is a limitation doing it 'normally', however prepending the path with \\?\C: should allow you to delve deeper than that 260 character limit...
Avatar of cmkeur

ASKER

ok here's how i did it just in case.  

open command prompt
use dir /x   to reveal shortname
use del  "shortname"

this removed it.
Avatar of cmkeur

ASKER

sir bounty I'm sorry I didn't try your solution.  I will try next time this happens.
Avatar of cmkeur

ASKER

how can i create a filename with more than 256 caharacters to try your solution?
Well, you could go through the trouble of undeleting the file, but I don't know that it's worth it.
I do know this method will work beyond the normal Windows 260 character limitation.
Avatar of Mnf
Mnf

try this delete utility to scheduale the delete in the next reboot
http://www.microsoft.com/technet/sysinternals/FileAndDisk/pendmoves.mspx
cmkeur,

To verify, you did boot into Safe Mode first bebore using Killbox and Unlocker? With Killbox, did you select delete on reboot?
Avatar of cmkeur

ASKER

war1,

Yes i was in safe mode.  No I didn't select delete on reboot with killbox.  That might explain why it didn't work.
Avatar of cmkeur

ASKER

sorry for the point split.  I think it's the only fair way.
cmkeur,

Let us know what happens to file when you use Killbox and select delete on reboot.
Avatar of cmkeur

ASKER

will do.