如何找出哪些进程已文件夹或文件被锁定? [英] How to find out what processes have folder or file locked?
问题描述
你怎么去查询正在运行的进程,找出哪些文件夹或文件,他们已经锁定? (也就是你去弹出驱动器,并有人告诉你,它不能推出,因为它是在使用中)
How do you go about querying running processes to find out what folders or files they have locked? (i.e. you go to eject a drive and you're told that it can't be ejected because it's in use)
我想要么得到一个现成的下载,或者写一个.NET 3.5应用程序来做到这一点(主要是在Windows的问题)。
I'd like to either get an "off the shelf" download, or write a .NET 3.5 app to do this (primarily a Windows question).
推荐答案
的Process Explorer 意志告诉你这一点。按Ctrl-F将让你搜索一个文件,并列出进程(ES),具有该文件打开/锁定。然后,您可以关闭该处理使用进程管理器。
Process Explorer will show you this. Ctrl-F will let you search for a file and list the process(es) that have that file open/locked. You can then close that handle using Process Explorer.
还有一个名为的Oh.exe
可供下载的命令行工具。请参见这里了解详情
There's also a command line utility called oh.exe
available for download. See here for more details
这篇关于如何找出哪些进程已文件夹或文件被锁定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!