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,051
  • 5
  • 23
  • 36
user236215
  • 6,788
  • 21
  • 58
  • 86

2 Answers2

31

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
  • 4,871
  • 3
  • 32
  • 47
hmjd
  • 117,013
  • 19
  • 199
  • 247
1

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

 handle
 handle -a
 handle -p 10832
gavenkoa
  • 41,371
  • 15
  • 229
  • 277