在Windows上强制删除文件

通常在我的开发工作站(我是管理员和唯一用户)上,我无法通过删除文件夹来删除文件 – 尽管已经递归获取了树的所有权.我假设这是由于文件被另一个进程锁定.

我有哪些(可编写脚本)选项可以帮助到这里?

评论:我也应该说我是2008 x64.

您可以使用 LockHunter查看哪个进程阻止删除文件.它是Windows的免费软件工具(32位和64位版本可用),它集成到Windows资源管理器上下文菜单中.

It is a free tool to delete files
blocked by something you do not kNow.
LockHunter is useful for fighting
against malware,and other programs
that are blocking files without a
reason. Unlike other similar tools it
deletes files into the recycle bin so
you may restore them if deleted by
mistake.

LockHunter Screenshot http://lockhunter.com/images/mainScreenshot.png

相关文章

Windows注册表操作基础代码 Windows下对注册表进行操作使用的...
黑客常用WinAPI函数整理之前的博客写了很多关于Windows编程的...
一个简单的Windows Socket可复用框架说起网络编程,无非是建...
Windows文件操作基础代码 Windows下对文件进行操作使用的一段...
Winpcap基础代码 使用Winpcap进行网络数据的截获和发送都需要...
使用vbs脚本进行批量编码转换 最近需要使用SourceInsight查看...