i am looking for a windows-tool that lists all the files that are currently opened by a specific process?

basically i mean files that got a fopen but never got a fclose by a specific process.

i tried to use sysinternals processmonitor, but i couldnt figure out how to list the current opened files but only when the opening happens.

thanks!

link|improve this question

67% accept rate
feedback

3 Answers

up vote 3 down vote accepted

You could try Sysinternals Process Explorer instead of Process Monitor. Process Monitor is design for watching what processes do as they do then. Process Explorer is more for seeing the current state of processes; it's Task Manager but with about 10x the functionality.

Sysinternals also have handle.exe which is a command line tool that tells you which files a process has open.

link|improve this answer
feedback

Check out Process Explorer from Sysinternals.

To see the open files for a process, select a process from the list, select the View->Lower Panel View->Handles menu option. All of the handles of type "File" are the open files.

Also, a great way to find which application has a file open is by using the Find->Handle or DLL menu option. Just enter the name of the file you are looking for and hit "Search" to find the processes with a file open matching the search string.

link|improve this answer
1  
+1 for anything from Sysinternals... btw, a direct link: live.sysinternals.com/procexp.exe – fretje Sep 29 '09 at 13:33
feedback

As Dave rightly said, use Process Explorer from SysInternals, apart from that they offer varying set of utils. Checkout: http://technet.microsoft.com/en-us/sysinternals/bb842062.aspx

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.