Handle
Handle allows you to determine which process has a file or folder open. Handle is useful any time you need to update or delete a file or folder, but access is denied because the object is in use.
To run Handle, save the file to a folder that is allowed to run executable files, such as C:\Program Files\. Specifically, you cannot save it to a Temporary Files folder. Then, open an administrative command prompt and select the folder containing the Handle executable.
To view all open handles, run Handle without any parameters. To view which process has a particular file or folder open, run Handle with a portion of the file's name. For example, if the sample music file Amanda.wma is locked, you can identify which process has it open by running the following command.
Handle Amanda
The following output demonstrates that Windows Media Player (Wmplayer.exe) has the file locked.
Handle v3.3 Copyright (C) 1997-2007 Mark Russinovich Sysinternals - www.sysinternals.com wmplayer.exe pid: 3236 2C0: C:\Users\Public\Music\Sample Music\Amanda.wma
Because the output lists the process name and Process Identifier (PID), you can use Task Manager to kill the process, allowing you to access the locked file. You can download Handle from http://technet.microsoft.com/en-us/sysinternals/bb896655.aspx.
In this tutorial:
- Troubleshooting Hardware, Driver, and Disk Issues
- Windows 7 Improvements for Hardware and Driver Troubleshooting
- Windows Troubleshooting Platform
- Built-in Troubleshooting Packs
- Windows Troubleshooting Platform Components
- Creating Custom Troubleshooting Packs
- Running Troubleshooting Packs Remotely
- Windows 7 Reliability Monitor
- Windows 7 Resource Monitor
- Windows Memory Diagnostics
- Disk Failure Diagnostics
- Self-Healing NTFS
- Improved Driver Reliability
- Improved Error Reporting
- The Process of Troubleshooting Hardware Issues
- How to Troubleshoot Problems That Prevent Windows from Starting
- How to Troubleshoot Problems Installing New Hardware
- How to Troubleshoot Problems with Existing Hardware
- How to Troubleshoot Unpredictable Symptoms
- How to Diagnose Hardware Problems
- How to Use Device Manager to Identify Failed Devices
- How to Check the Physical Setup of Your Computer
- How to Check the Configuration of Your Hardware
- How to Verify That System Firmware and Peripheral Firmware Are Up to Date
- How to Test Your Hardware by Running Diagnostic Tools
- How to Simplify Your Hardware Configuration
- How to Diagnose Disk-Related Problems
- How to Use Built-In Diagnostics
- How to Use Reliability Monitor
- How to Use Event Viewer
- How to Use Data Collector Sets
- How to Use Windows Memory Diagnostics
- Memory Failures
- How Windows Automatically Detects Memory Problems
- How to Schedule Windows Memory Diagnostics
- How to Start Windows Memory Diagnostics When Windows Is Installed
- How to Start Windows Memory Diagnostics from the Windows DVD
- How to Configure Windows Memory Diagnostics
- How to Troubleshoot Disk Problems
- How to Prepare for Disk Failures
- How to Use ChkDsk
- ChkDsk Examples
- ChkDsk Syntax
- How to Use the Graphical ChkDsk Interface
- How to Determine Whether ChkDsk Is Scheduled to Run
- ChkDsk Process on NTFS Volumes
- How to Use the Disk Cleanup Wizard
- How to Disable Nonvolatile Caching
- How to Troubleshoot Driver Problems
- How to Find Updated Drivers
- How to Roll Back Drivers in Windows 7
- How to Use Driver Verifier
- How to Use the File Signature Verification
- How to Use Device Manager to View and Change Resource Usage
- How to Use Windows 7 System Restore
- How to Troubleshoot USB Problems
- How to Solve USB Driver and Hardware Problems
- Understanding USB Limitations
- How to Identify USB Problems Using Performance Monitor
- How to Examine USB Hubs
- How to Troubleshoot Bluetooth Problems
- Troubleshooting Tools
- DiskView
- Handle
- Process Monitor