How can I tell what process has a file opened on Windows?
Use Windows Sysinternals Handle utility.
For example, download http://download.sysinternals.com/Files/Handle.zip and extract handle.exe to a directory in your PATH such as C:\Windows. Or copy it to a new directory named C:\Sysinternals and add that to your PATH.
Here are some examples:
will show the usage information.
will show all handles in the system that refer to open files whose names include name_fragment
will show all types of handles in the system that refer to resources whose names include name_fragment. Use -a if you want to see resources on network attached storage (NAS) or a storage area network (SAN). For example, if drive M: is mapped to a network share named \\MyServer\public, use the following command to see what processes and users have opened the file W:\mydir\myfile:
handle -a name_fragment
handle -a -u \MyServer\public\mydir\myfile
handle -a -u myfile
For more information about Windows Sysinternals visit http://technet.microsoft.com/en-us/sysinternals/default.aspx
by: Veryant Support
This question has been viewed 18799 times so far.
Here to View all the questions in Windows
|There are no attachment file(s) related to this question.
| User Comments
|There are no user comments for this question. Be the first to post a comment. Click Here
| Related Questions
- How can I monitor I/O activity on a specific file or folder in Windows?
- What is the recommended method for specifying isCOBOL framework properties?