Identify process using a file Identify process using a file windows windows

Identify process using a file


You can use handle.exe from Sysinternals.

Something like:

> handle /accepteula C:\path\to\directory...program.exe           pid: 1234   type: File           2E4: C:\path\to\directory...

Thanks to https://stackoverflow.com/a/599268/367916 .


You could use Process Explorer from Microsoft

  1. Download & unpack & run Process Explorer
  2. Click Find menu and then click Find Handle or DLL... or press CTRL + F
  3. Copy and paste path to locked folder of file
  4. Click Search, you can kill process from main Process Explorer window


If you can limit yourself to new enough versions of Windows, the Restart Manager can tell you which process has a particular file open.