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.

I need to modify a file that is locked by a process. How can I find the responsible process and release its lock? I'm running Windows 7.

share|improve this question
    
i suppose you mean it is locked, not UNlocked :) –  Molly7244 Jan 9 '10 at 18:32

3 Answers 3

up vote 8 down vote accepted

LockHunter - It is a free tool to delete files blocked by something you do not know.

alt text

alt text

LockHunter is freeware.

share|improve this answer

You can use SysInternals (owned by Microsoft) free tool ProcessExplorer to unlock a file handle.

Just use the Find menu to search for the file that is locked. This will show which process has the lock on the file. If you can't get the process to release the lock by shutting it down safely, you can forcefully release the lock by double clicking the search result to show the file in the main Process Explorer window. Then right-click the file and select Close Handle

share|improve this answer

Unlocker

The application removes file-access restrictions that prevent a user from moving, deleting, or renaming a file. The user right-clicks on a file and selects Unlocker, which displays information regarding the selected file, such as Path Locked, PID, Handle, and Process Path. This program also allows terminating a currently running process. In some cases, files cannot be accessed due to Windows file-access bugs, for which Windows informs the user the file is currently in use--even when it's not.

Unlocker can effectively bypass this bug's restrictions; it unlocks or disables whatever is preventing the user to access that file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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