When Windows blocks a move, rename, or delete because a file is "open in another program," UnBlock finds the process behind it. A right-click entry on your context menu scans the file and lists the background processes holding it, and you release the lock or close the program from that list.
UnBlock does not ship a pre-built main program. During setup, setup.exe compiles the readable C# source from the src folder on your machine, then removes itself and the sources, leaving the installed program behind.
- Download the latest release
UnBlock.zip. - Do not run files directly inside the zip.
- Right-click the
.zip, select Extract All..., and extract the contents to a normal folder.
- Double-click
setup.exe.- Windows SmartScreen may warn because the setup binary is unsigned. Click More info → Run anyway.
- Choose a destination, or press OK to accept
C:\Program Files\UnBlock. - Setup compiles the source locally, registers your right-click menu, and deletes itself and the
srcfolder.
Transparency note:
setup.exeis compiled fromsrc/Setup.cs. Prefer to build it yourself? Run:
%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\csc.exe /nologo /target:winexe /out:setup.exe src\Setup.csDeveloper note: whensetup.exeruns from a source checkout (a.gitfolder sits next to it), it keeps itself and thesrcfolder. The/KEEPSETUPflag forces the same behavior anywhere.
- Select one or multiple locked files or folders in Windows Explorer.
- Right-click your selection and pick:
UnBlock(files or folders)UnBlock This Folder(empty background space inside an open directory)
- Multiple selected items group into a single window.
Launch UnBlock from its install folder or Start Menu without right-clicking.
- Use the
+ Fileand+ Folderbuttons in the header to add items to the list.
When Windows Explorer cannot delete a file that is in use, UnBlock replaces the stock error dialog with its own prompt. From it you kill the locking process and delete, or unlock the handles and delete.
After the scan finishes, UnBlock color-codes the open file handles:
- 🔴 High Severity (Red): exclusive write/delete locks. The process is modifying the file or blocking other programs from touching it.
- 🟡 Medium Severity (Orange): active readers, such as a media player or a file copy in progress.
- 🟢 Low Severity (Green): benign use, such as an idle command prompt or WinRAR open on the path. These rows fade out so you can ignore them and focus on the red locks.
Select the locking program and choose an action:
- Unlock Selected / Unlock All: disconnects the program from the file without closing it. Prevents data loss in your other applications.
- Kill Process / Kill All: closes the program holding the lock. Use this when the application is frozen, unresponsive, or running from the folder you want to delete.
Note: Windows System Kernel processes (PID 4) cannot be terminated. UnBlock still identifies them so you know why the resource is occupied.
- Open Windows Settings.
- Go to Apps > Installed Apps.
- Find UnBlock File & Folder Unlocker and click Uninstall.
- The uninstaller removes the registry keys and deletes the program folders.
Delete the C:\Program Files\UnBlock folder manually and a background task notices the program is missing. It removes your right-click menu entries and registration without an uninstaller or a reboot.
License (Click to expand)
This project is open-source and distributed under the MIT License.