Is there a way to find the 开发者_C百科currently open file from an Excel or Word process? For example, i want to get all the list of running processes in windows and which files they currently have open.
Thanks in advance!
I am not sure of how to programmaticly do this, but if you are asking in general or looking for a tool to do it Process Explorer can under "View Handles" and look for the type "File". You can also see which program has a specific file open by clicking the binoculars.
精彩评论