1. Product Guide
  2. »
  3. Blog
  4. »
  5. How to Find Out Which Windows Process is Using a File

How to Find Out Which Windows Process is Using a File

How to Find Out Which Windows Process is Using a File

One of the best ways to handle locked files or folders is to use the free Microsoft program Process Explorer.

Ever try to delete, move, or rename a file only to get a Windows system warning with something like one of these messages?

  • “Cannot delete file: Access is denied”
  • “There has been a sharing violation”
  • “The source or destination file may be in use”
  • “The file is in use by another program or user”.
  • “Make sure the disk is not full or write-protected and that the file is not currently in use”

One of the best ways to handle locked files or folders is to use the free Microsoft program Process Explorer. The program has been described in that product review and here is how to use it to find out what program, DLL, or handle is using a file or folder. You will need to run as administrator.

How to find out what program is using a file

In Windows 7, 8 or 10, the system message may tell you what program is using the file. If it doesn’t, there is a simple way to find the program:

  1. Open Process Explorer, running as administrator.
  2. On the toolbar, find the gunsight icon on the right (pointed in the figure shown below).
  3. Drag the icon and drop it on the open file or folder that is locked.
  4. The executable that is using the file will be highlighted in the Process Explorer main display list.

How to find out which handle or DLL is using a file

  1. Open Process Explorer, running as administrator.
  2. Enter the keyboard shortcut Ctrl+F. Alternatively, click the “Find” menu and select “Find a Handle or DLL”.
  3. A search dialog box will open.
  4. Type in the name of the locked file or other file of interest. Partial names are usually sufficient.
  5. Click the button “Search”,
  6. A list will be generated. There may be a number of entries.
  7. An individual handle in the list can be killed by selecting it and pressing the delete key. However, care is necessary when deleting handles, as instabilities may occur. Often, just rebooting will free a locked file.

Boris Diedrich

Boris is a dedicated writer for our technical editorial team who specializes in putting complex topics into simple words. His goal is to provide his readers with high-quality and informative content. His articles are easy to understand and can be understood by professionals and laymen alike. He is a master at entertaining and informing his readers.

Click to rate this post!
[Total: 0 Average: 0]

Related articles