For Windows 7 and Windows 8, you can use the built-in resource monitor for this. You can find it by searching for Resource Monitor in the Start menu.
Select the Related Handles section on the CPU tab and enter the file you want.
When you find a process that uses this file, right-click and select "End Process"


If you want to unlock the entire folder or file that is used by any program, you can download the Unlocker program from here
Radoslav Jun 09 '14 at 18:49 2014-06-09 18:49
source share