Instantly find and unlock files stuck in "File in Use" or "Access Denied" on Windows.
-
Updated
Sep 20, 2026 - C#
Instantly find and unlock files stuck in "File in Use" or "Access Denied" on Windows.
Find out which process is locking a Windows folder and kill it. Zero deps, npx-ready.
文件被占用无法删除?找出锁它的进程。取代已归档的 wholock。
已归档。请用 hc-ui/wholocks。
Lightweight native Windows utility for finding, unlocking and deleting files or folders locked by running processes. Portable Win32 C++, no drivers, services, .NET or runtime dependencies.
Names the exact process holding a locked file on Windows, where Explorer only says 'another process'. Uses the Restart Manager API - the same one Windows Setup uses - to report PID, image, service name, start time and restartability. Scans folders, verifies PID identity by start time, JSON output. Zero dependencies, read-only, PowerShell 5.1.
To associate your repository with the restart-manager topic, visit your repo's landing page and select "manage topics."