Windows查看文件句柄

本文介绍两种在Windows系统中查找占用特定文件的进程的方法:一是通过任务管理器和资源监视器进行图形界面操作;二是利用Handle工具命令行方式查询。

图形界面方式

  1.     打开任务管理器

133147_U8hr_143181.png

     2. 性能tab,点击链接打开资源监视器;

133634_gZIz_143181.png

    3. 现在cpu tab,关联的句柄后面的输入框可以输入你要搜索的文件路径,可模糊匹配;

 

命令方式

   Windows系统本身并不内置命令查看句柄,但是微软提供一个可选的命令工具来查看。

https://technet.microsoft.com/en-us/sysinternals/bb896655.aspx

Ever wondered which program has a particular file or directory open? Now you can find out. Handle is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all the handles of a program.

官方描述信息。

    接下来我来试用下:

  1.  先下载工具包Handle.zip;

134729_rB5j_143181.png

   2. 将其中的handle.exe 复制粘贴到C:\Windows\System32目录下,则可以使用了;

   3. 先看下帮助信息:

134942_UUfO_143181.png

 -a 可以查看所有

   如果要按句柄名称搜索:

 

 

转载于:https://my.oschina.net/shipley/blog/871511

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值