Unlock "Folder In Use"
When Explorer says "Folder/File In Use", shows what is blocking it and lets you choose: end the processes and continue, or only end them
Author: LyricsPortal
When Explorer refuses to delete, move or rename something because it is in use ("Folder In Use" / "File In Use"), this mod finds out which processes are blocking it and lets you decide what to do.
| Before |
After |
 |
 |
When the warning appears, a small dialog lists the blocking processes and offers:
- End processes and continue - terminates the processes and presses Try Again for you, so Explorer completes the original operation.
- Only end processes - terminates the processes and leaves Explorer's warning open so you can retry yourself.
- Cancel - does nothing.
If Explorer windows are open inside the item being processed, they are moved up one level.
The dialog follows the Windows app theme: if apps are set to dark mode, the dialog is dark too.
How it works
- The mod runs as a tool in its own dedicated process, not inside Explorer, so a problem in it can't affect the taskbar or the desktop.
- The warning is detected through its internal UI Automation identifiers instead of its text, so it works with any display language.
- The blocked item is identified from the name shown in the warning. Only the text elements of the interrupt panel itself are read (starting from the Try Again button), never the rest of the progress window, and names are compared in full. Only the selected items (or entries inside selected folders) whose name matches exactly are scanned.
- The matched paths are listed in the details of the prompt, so you can see what was scanned before ending anything.
- Blockers are found with the Restart Manager, the current directory of each process, and the system handle table. Every Explorer process is excluded.
- Processes are opened while scanning and terminated through those same handles, so a process that exits and whose PID is reused is never terminated by mistake.
Notes
- Ending a process terminates it immediately. Unsaved work in that process is lost.
- Elevated or protected processes can't be ended from this mod.
- If the item named in the warning can't be matched with the selection, the mod says so and does nothing.
- The mod relies on internal details of Explorer's operation dialog, which may change in future Windows versions.
Settings
- Expand details by default - show the list of matched items, processes and windows already expanded. If disabled, the Details row starts collapsed.
- Show message when nothing is found - show a dialog when the blocked item or its blocking process could not be identified (enabled by default).