Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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!

share|improve this question
Related question (with relevant answers to this question): stackoverflow.com/questions/15708/lsof-equivalent-for-windows – Anderson Green Feb 22 at 19:43

3 Answers

up vote 4 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.

share|improve this answer

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.

share|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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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