Task Manager is fine for closing a frozen game, but it won't tell you which program has a file open when Windows says "the action can't be completed because the file is open in another program". Process Explorer, a free Sysinternals tool from Microsoft, can. This guide is based on Microsoft's official Process Explorer documentation.
What Process Explorer does
Microsoft describes Process Explorer as a tool that shows "information about which handles and DLLs processes have opened or loaded". Its window has two parts:
The top pane always lists the processes currently running, including the names of the accounts that own them.
The bottom pane changes with the mode. In handle mode it shows the handles (open files, folders, registry keys and other objects) that the selected process has open. In DLL mode it shows the DLLs and memory-mapped files the process has loaded.
It also has a search feature that shows which processes have a particular handle open or DLL loaded. Microsoft says that makes it useful for tracking down DLL version problems and handle leaks.
What you need
At the time of writing, Microsoft lists Process Explorer v17.21, published on 5 November 2026, as a 3.7MB download. It runs on Windows 11 and later, and on Windows Server 2019 and later.
Step 1: Download and run it
Go to the Process Explorer page on Microsoft Learn (linked in the sources below) and select Download Process Explorer.
Extract the download to a folder you'll keep, such as a Tools folder in Documents.
Run procexp.exe. There's no installer; Microsoft's instructions are simply to run the program.
Microsoft also offers a Run now from Sysinternals Live link, which starts the tool without saving the zip first. Only download Sysinternals tools from Microsoft's own pages.
If some details are missing for system processes, try running it as an administrator: right-click procexp.exe and choose Run as administrator.
Step 2: Read the process list
The top pane lists every running process. Use it the way you'd use Task Manager's Details tab, but with more detail:
Look at the owning account to tell apart your own apps from system processes.
Click a column header to sort, for example by CPU, to find what's using the processor.
Select a process to fill the bottom pane with its handles or DLLs.
If a process is pinning your CPU and you can't tell what it is, our guide to fixing high CPU usage in Windows 11 explains what to check next.
Step 3: Find which program is locking a file
This is the job Process Explorer is best known for.
Open Process Explorer's search.
Type part of the file or folder name that Windows says is in use.
Process Explorer lists the processes that have a matching handle open.
Use the results to identify the program, then find it in the process list.
Once you know the culprit, close that program normally and try again. Closing the app properly is safer than force-ending its process, because force-closing can lose unsaved work. Don't end Windows system processes unless you know exactly what they are.
Step 4: Check which DLLs a program has loaded
Switch the bottom pane to DLL mode and select a process to see every DLL and memory-mapped file it has loaded. This helps when a game or app crashes after an update and you suspect an old or mismatched DLL, or when an overlay or capture tool may be injecting itself into a game.
You can also search for a DLL by name to see which processes have it loaded.
Process Explorer shows what's running now. To see what starts automatically with Windows, use Microsoft's Autoruns; our guide to using Autoruns in Windows 11 covers it. For a lighter clean-up of startup apps, see how to manage startup apps in Windows 11. Microsoft also publishes Handle, a command-line handle viewer, if you prefer the terminal.
Our verdict
Process Explorer is the quickest free way to find which program is locking a file and to see what's really running on your PC. Download it from Microsoft, run it as an administrator for a complete view, use the search to find locked files, and close programs normally rather than force-ending processes you don't recognise.