开发者

Get current open filename from Windows Process using C#

开发者 https://www.devze.com 2023-01-12 22:55 出处:网络
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 op

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号