http://technet.microsoft.com/en-us/library/bb490961.aspx
Today I found a useful windows system tool openfiles.It querys displays or disconnect files opened by network users.
Why we need this tool?
For a long time,we encounter a problem - when delete a file from website,it returns failed.other process was access that file.with this tool,we know who was using that file and disconnect the user when needed.An advantage of this tool is to query from a remote computer.
Here is the command to query the opened share file from a remote computer
openfiles.exe /query /s 192.168.1.110 /v /fo csv
disconnect
openfiles.exe /disconnect /id 1