Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question asks how to delete a locked file in Windows XP. The answers in there don't apply to Windows Vista 64. Is there some app like Unlocker that works in Vista 64?

share|improve this question
Unlocker has been updated; it now supports Windows Vista and 7 64-bit. –  Bob Jun 11 '12 at 12:44
Try Unlocker again! –  kokbira Jun 11 '12 at 13:36
add comment

closed as too localized by Bob, nhinkle Jun 11 '12 at 18:21

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

4 Answers

You can use Process Explorer to search for file handles (or any other type of handle) and close them.

Edit per comment: Yeah, good point. Forcing the handle closed is kind of a last resort. You can use the search functionaltiy to identify what exactly is holding onto the file and then just close that out gracefully. Sometimes you can't (the OS is holding on to something for god knows what reason) and you need to force the handle closed, but generally, it's pretty easy to see what's holding the file and close it.

What your second comment says to me is that the application that's holding the file has it in different states. Sometimes it may flush the file so you can delete it and other times it's actively using the file. Can you figure out the state of the application that's holding the file to determine when you can and cannot close the file? That is, try and get the application to put the file in a state that it can be deleted without actually closing the application.

share|improve this answer
If I don't want to close the handler? –  Daniel Moura Aug 11 '09 at 18:25
I know what is holding the file but I don't want to close the application everytime. Sometimes I can delete the file, other times I can't delete it. –  Daniel Moura Aug 11 '09 at 18:33
What kind of app is it? –  Nifle Aug 11 '09 at 18:50
@Nifle: Eclipse, using Eclipse ME plugin. There are 2 projects. One generate a jar through J2ME->Create package. This jar is in the other project classpath. Creating a new jar deletes the old jar, but sometimes this file is locked. –  Daniel Moura Aug 11 '09 at 18:59
I don't know eclipse but in Visual Studio it's pretty easy to run some prebuild commands. Maybe eclipse can do something similar and delete it just before building? (just as a workaround) –  Nifle Aug 11 '09 at 22:32
add comment

I use Emco UnLock IT on my vista 64. It's not as easy to use as Unlocker but it gets the job done (most of the time).

Found two more utilities over at Lifehacker.

LockHunter (Have both 64 and 32 bit versions)
KillBox (Beware this might kill the locking process)

share|improve this answer
It doesn't work. –  Daniel Moura Aug 11 '09 at 18:29
I use LockHunter and it worked in all of my cases. –  svandragt Aug 30 '09 at 11:10
add comment

I found LockHunter today, an Unlocker equivalent that works on 64 bit Windows.

share|improve this answer
add comment

Apparently Malwarebyte's FileAssassin works on Vista 64bit. Failing that, a Linux liveCD is always a last resort option.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.