我怎样才能找出进程正在使用我的文件吗? [英] How can I find out what process is using my file?
问题描述
我如何可以找出哪些进程正在使用我的文件时,我得到了建立这样一个错误:
18时出错无法复制文件Some.dll到斌\调试\ Some.dll。该 进程无法访问该文件'本\调试\ Some.dll',因为它是 被另一个进程。
这绝对是一招我有前使用。
我把所有的Sysinternals工具,我已经加入到我的PATH变量中的文件夹中。
具体而言,您可以使用处理
可以在这里一>找一下打开了该文件,然后使用 PsKill
可这里尼克斯的罪魁祸首!
修改
下面是一个例子输出
C:\ Users \用户jschubert>处理wowza.txt
手柄v3.46
版权所有(C)1997-2011标记Russinovich
Sysinternals的 - www.sysinternals.com
Acrobat.exe PID:6800类型:文件284:C:\ Users \用户jschubert \桌面\东西\ wowza.txt
C:\ Users \用户jschubert> pskill Acrobat.exe
PsKill V1.13 - 终止对本地或远程系统中的进程
版权所有(C)1999-2009标记Russinovich
Sysinternals的 - www.sysinternals.com
流程Acrobat.exe杀害。
How can I find out which process is using my file when I get such an error on the Build :
Error 18 Unable to copy file "Some.dll" to "bin\Debug\Some.dll". The process cannot access the file 'bin\Debug\Some.dll' because it is being used by another process.
This is definitely a trick I've had to use before.
I have all of SysInternals utilities in a folder that I've added to my PATH variable.
Specifically, you can use handle
available here to find what has the file open, then use PsKill
available here to nix the culprit!
EDIT
here's an example output
C:\Users\jschubert>handle wowza.txt
Handle v3.46
Copyright (C) 1997-2011 Mark Russinovich
Sysinternals - www.sysinternals.com
Acrobat.exe pid: 6800 type: File 284: C:\Users\jschubert\Desktop\something!\wowza.txt
C:\Users\jschubert>pskill Acrobat.exe
PsKill v1.13 - Terminates processes on local or remote systems
Copyright (C) 1999-2009 Mark Russinovich
Sysinternals - www.sysinternals.com
Process Acrobat.exe killed.
这篇关于我怎样才能找出进程正在使用我的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!