Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know what file is opened by an application at any time?

Tags:

file

I'm new here, so I don't have the time to contribute before I ask for u guys' help, so pardon me for that.

I'm not sure if this can be done, but I would like to find out the opened file(s) of an application.

Here I don't mean the "internal" opened files, but are those that are opened by the end-user (either by invoking the handling app thru file-assoc, or explicitely inside the app). Think *.cs or *.vb files in Visual Studio (yeah I'm an MS guy) or text files in Notepad.

I've looked at "verbs" in the Win Shell MSDN doc, but it only mentions the invoking, and no way to inspect info of invoked verbs. I also looked at DDE, but it looks like a general purpose facility and does not fit into my case here.

I have to say that my situation is difficult to be solved by Googling because of the lack of unique key words, so this would definitely needs human attention :)

Thanks

like image 277
im_chc Avatar asked Nov 19 '09 16:11

im_chc


1 Answers

If you want to inspect a running process for open handles, you can use ProcessExplorer or the command-line application Handle.

ProcessExplorer is essentially the Windows Task Monitor on steroids. It's a very useful tool in day-to-day computing, as well as process debugging. I highly recommend it.

like image 129
Ben S Avatar answered Nov 16 '22 03:11

Ben S