在 Windows 上查看进程的打开文件处理程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13420057/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
view open file handlers for a process on windows
提问by user236215
I want to view open file handlers for a process on windows to verify the correct config file is read. ProcMon and other tools show referenced modules - dlls. I need to see open file handles to all files such as xml, txt, etc.
我想在 Windows 上查看进程的打开文件处理程序,以验证是否读取了正确的配置文件。ProcMon 和其他工具显示引用的模块 - dll。我需要查看所有文件的打开文件句柄,例如 xml、txt 等。
回答by hmjd
Process Explorercan provide this information, though it is hidden by default.
Process Explorer可以提供此信息,但默认情况下它是隐藏的。
To show handles: View -> Lower Pane View -> Handles
显示句柄: View -> Lower Pane View -> Handles
Process Explorer also allows you to search on a file name and determine which process has it opened.
Process Explorer 还允许您搜索文件名并确定它打开了哪个进程。