Once you see the error “The method can’t entry the file as a result of it’s being utilized by one other course of,” you should utilize a number of built-in or free instruments to seek out out which course of is locking the file or folder.
Utilizing Useful resource Monitor
Useful resource Monitor is constructed into Home windows:
- Press Win + R, kind resmon, and press Enter. This can open Useful resource Monitor.
- Go to the CPU tab.
- Within the Related Handles part, use the search field to enter a part of the file or folder identify.
- The outcomes will present which processes are utilizing the file. Test the Picture and PID columns to determine the method.
- You’ll be able to right-click the method and choose Finish Course of if essential (be cautious when ending processes).
Utilizing Course of Explorer
Course of Explorer is a free device from Microsoft Sysinternals:
- Obtain and run Course of Explorer as administrator. You’ll be able to purchase Course of Explorer utilizing the next WingGet command:
Winget set up Microsoft.Sysinternals.ProcessExplorer
- In Course of Explorer, Press Ctrl + F or go to Discover > Discover Deal with or DLL.
- Kind a part of the file or folder identify and click on Search.
- The device will checklist all processes at the moment utilizing the file. Click on an entry to focus on the method in the principle window.
- You’ll be able to right-click the deal with and choose Shut Deal with to launch the file (use with warning).
Utilizing Command Line Instruments
- openfiles: Run openfiles /question in Command Immediate (might require enabling with openfiles /native on and a restart). This reveals which information are open and by which course of. You’d must allow the native on choice earlier than the file received locked after all.
- deal with.exe: Obtain from Sysinternals. You’ll be able to purchase Deal with.exe with the next WinGet command:
winget set up Microsoft.Sysinternals.Deal with
- Run deal with.exe
to checklist processes utilizing the file.
