\
Useful Programs
Microsoft Tools
SysInternals' Tools
Handle.exe - Displays information about open handles
Handle.exe - Displays information about open handles |
You can get the latest version and information from
SysInternals
.
I use this program to find out what has a file in use when Windows
won't eject a drive or I have other file sharing issues.
The following is an example, you don't need wildcards and the
string can be partial (to save typing):
handle file.txt
SYNTAX: handle.exe /AcceptEula /? |
Handle v3.41
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
usage: handle [[-a [-l]] [-u] | [-c <handle> [-y]] | [-s]] [-p <process>|<pid>] [name]
-a Dump all handle information.
-l Just show pagefile-backed section handles.
-c Closes the specified handle (interpreted as a hexadecimal number).
You must specify the process by its PID.
WARNING: Closing handles can cause application or system instability.
-y Don't prompt for close handle confirmation.
-s Print count of each type of handle open.
-u Show the owning user name when searching for handles.
-p Dump handles belonging to process (partial name accepted).
name Search for handles to objects with <name> (fragment accepted).
No arguments will dump all file references.