| Crates.io | win-locksmith |
| lib.rs | win-locksmith |
| version | 0.1.2 |
| created_at | 2025-03-27 17:23:02.628188+00 |
| updated_at | 2025-05-27 11:10:10.732157+00 |
| description | A Windows utility to find processes locking your files |
| homepage | |
| repository | https://github.com/wangfu91/locksmith |
| max_upload_size | |
| id | 1608242 |
| size | 52,496 |
A Windows utility to find out which processes are locking your files.
Ever wondered why you can't delete or modify a file? Locksmith will help you identify the processes that are holding onto your files.
cargo install win-locksmith
Usage: locksmith.exe [OPTIONS] <PATH>
Arguments:
<PATH>
Path to the file you want to check for locks
Options:
-k, --kill
Forcefully kill the processes locking the file (requires confirmation)
-h, --help
Print help (see a summary with '-h')
Finding processes locking a file:
> locksmith "C:\Users\username\Desktop\important.txt"
Found 2 locker(s):
pid: 1234
name: notepad.exe
path: C:\Windows\System32\notepad.exe
pid: 5678
name: explorer.exe
path: C:\Windows\explorer.exe
On Windows:
git clone https://github.com/wangfu91/locksmith
cd locksmith
cargo build --release
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is a Rust port of the PowerToys's FileLockSmith module. The original implementation is in C++ and can be found here: https://github.com/microsoft/PowerToys/tree/main/src/modules/FileLocksmith.