mal*_*lat 0 windows windows-7 file-permissions
我正在尝试删除在 eclipse (Java) 构建期间生成的文件。我一直在仔细阅读这里的所有答案,但到目前为止没有一个对我有用(见下文)。
该文件名为 dataentry.war。我使用Handle来识别拥有它的进程:
> handle64 dataentry.war
Nthandle v4.1 - Handle viewer
Copyright (C) 1997-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
ccSvcHst.exe pid: 2720 type: File 2350: C:\Users\mmalaterre\workspace\dataentry\target\dataentry.war
ccSvcHst.exe pid: 2720 type: File 2350: C:\Users\mmalaterre\workspace\dataentry\target\dataentry.war
ccSvcHst.exe pid: 2720 type: File 344C: C:\Users\mmalaterre\workspace\dataentry\target\dataentry.war
ccSvcHst.exe pid: 2720 type: File 344C: C:\Users\mmalaterre\workspace\dataentry\target\dataentry.war
Run Code Online (Sandbox Code Playgroud)
那么现在我该如何删除这个文件呢?
使用explorer
(以管理员权限开始),我收到一条我没有管理员权限的愚蠢消息:
我尝试使用任务管理器:
但这导致:
从cmd
具有管理员权限的shell:
>del /F dataentry.war
c:\Users\mmalaterre\workspace\dataentry\target\dataentry.war
Access is denied.
Run Code Online (Sandbox Code Playgroud)
出于某种原因,我无法resmon
找到句柄:
我还尝试重命名父目录,使其不妨碍我(eclipse),但我又不能这样做:
如果我尝试从 cmd(具有管理员权限)中删除该进程,则会得到以下结果:
>taskkill /PID 2720 /t /f
ERROR: The process with PID 3856 (child process of PID 2720) could not be terminated.
Reason: Access is denied.
ERROR: The process with PID 2720 (child process of PID 700) could not be terminated.
Reason: Access is denied.
Run Code Online (Sandbox Code Playgroud)
有没有办法删除Windows上的锁定文件?
您的virusscanner 正在锁定文件,并且virusscanner 可以很好地防止杀死进程,以防止病毒尝试做同样的事情。
暂时停止实时病毒扫描程序以解除锁定。如果这不起作用,请重新启动以解除锁定。
然后删除文件。
PS 从实时病毒扫描程序中排除编译/构建/调试目录通常是一个好主意。编译器/链接器/调试器的行为对于病毒扫描程序来说可能看起来很可疑,并且病毒扫描程序的过度检查会真正减慢甚至干扰编译/构建/调试会话。
归档时间: |
|
查看次数: |
437 次 |
最近记录: |