From NirSoft Freeware
OpenedFilesView displays the list of all opened files on your system. For each opened file, additional information is displayed: handle value, read/write/delete access, file position, the process that opened the file, and more...
Optionally, you can also close one or more opened files, or close the process that opened these files.
This utility is especially useful if you try to delete/move/open a file and you get one of the following error messages:
* Cannot delete [filename]: There has been a sharing violation. The source or destination file may be in use.
* Cannot delete [filename]: It is being used by another person or program. Close any programs that might be using the file and try again.
When you get one of these error messages, OpenedFilesView will show you which process lock your file. Closing the right process will solve this problem. optionally, you can also release the file by closing the handle from OpenedFilesView utility. However, be aware that after closing a file in this way, the program that opened the file may become unstable, and even crash.
How does it work ?
OpenedFilesView uses the NtQuerySystemInformation API to enumerate all handles in the system. After filtering non-file handles, it uses a temporary device driver
Windows 2000/XP/2003/Vista (32-bit only !). Older versions of Windows (NT/9x/ME) are not supported.