How To

How To Find which process is locking your file in Windows

Windows comes with numerous annoyances and one of many greatest and most frequent ones is once you’re attempting to delete a file and also you get a message telling you file is in use and can’t be deleted.

The quickest repair for this difficulty is to seek out which process is locking your file in Windows – as soon as you understand it, you’ll be able to terminate it and also you’ll be capable to delete, transfer, or rename that file.

How to seek out which process is locking your file in Windows

There are some celebration instruments that may enable you to unlock a file, however there’s actually no want as a result of Windows already has a built-in software you should utilize and it’s known as OpenFiles.

OpenFiles works, however there is one drawback. By default, it solely tracks the information opened by distant customers through native shared folders which isn’t useful until you even have native shared factors.

For the software to trace native opened information, we’ll must allow the “keep objects record” system world flag through Command Immediate.

find which process is locking your file in Windows

To start with, open an elevated Command Immediate. To do that by click on on the Begin button, kind “cmd” with out the quote marks, right-click on the primary outcome and choose “Run as administrator”. Then, kind the command beneath and hit enter:

OpenFiles /native on

Now you simply must restart your PC.

As soon as your pc reboots, it’s time to make use of OpenFiles. Open an elevated Command Immediate once more and run the command beneath:

OpenFiles > %userprofilepercentdesktopfilelist.log

As soon as rebooted, open an elevated Command Immediate window once more. All of the instructions beneath will get you the record of open information, nevertheless it’s an extended record so you’ll be able to export it to a file:

OpenFiles > %userprofilepercentdesktopfilelist.log

Or it can save you it to the clipboard and paste it later in a textual content file:

OpenFiles | Clip

Or as a LIST or CSV file:

OpenFiles /Question /FO CSV

Nonetheless, what we’re most in is to seek out the process that’s locking the file. You are able to do that utilizing this command:

OpenFiles | FindStr /i doc

Now you’ll be able to both shut the associated utility or finish the process through Activity Supervisor.

You may also discover which process is locking your file in Windows utilizing the Useful resource Monitor.

Open the Activity Supervisor, go to the Efficiency tab and click on on “Open Useful resource Monitor”.

On the Useful resource Monitor window, go to the CPU tab and in the Related Handles part enter the file title in the search field. An inventory of related processes will likely be displayed shortly.

Join with us on Fb, Twitter, and Google+.

Most Download

To Top