Whenever you see the error “The method can not entry the file as a result of it’s being utilized by one other course of,” you should use 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, sort 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 possibly can 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 software from Microsoft Sysinternals:
- Obtain and run Course of Explorer as administrator. You possibly can 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.
- Sort a part of the file or folder identify and click on Search.
- The software will checklist all processes presently utilizing the file. Click on an entry to focus on the method in the primary window.
- You possibly can 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 (could 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 possibility earlier than the file received locked after all.
- deal with.exe: Obtain from Sysinternals. You possibly can 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.
