17

I want to view open file handlers for a process on windows to verify the correct config file is read. ProcMon and other tools show referenced modules - dlls. I need to see open file handles to all files such as xml, txt, etc.

Davis Broda
  • 4,102
  • 5
  • 23
  • 37
user236215
  • 7,278
  • 23
  • 59
  • 87

2 Answers2

32

Process Explorer can provide this information, though it is hidden by default.

To show handles: View -> Lower Pane View -> Handles

Process Explorer also allows you to search on a file name and determine which process has it opened.

Dan Bechard
  • 5,104
  • 3
  • 34
  • 51
hmjd
  • 120,187
  • 20
  • 207
  • 252
1

Sysinternal Suite comes with handle.exe for dumping within CLI:

handle
handle -a
handle -p 10832
Josh Correia
  • 3,807
  • 3
  • 33
  • 50
gavenkoa
  • 45,285
  • 19
  • 251
  • 303