在窗口景色的删除不可删除的文件
有文件和目录在似乎对不可能删除和去除的窗口景色。 这些坚持不可删除的文件和文件夹不可能甚而有时访问,不管,甚而由管理员和您是相当肯定的文件没有通过跑过程锁。 这个情况总发生,特别是如果您在另一个分开或硬盘驱动器执行就地升级从Windows XP或安装窗口景色,留给老XP使用的分开它自己的数据。
问题症状发生,因为不可删除的文件和文件夹’ ACLs (存取控制表)为帐户被设置了与适用于老分开的SIDs。 如此没人或不存在的用户有效地拥有的这数据意志,当看法在景色操作系统。 为了访问文件为操作,修改或删除,我们将需要接管文件的在景色之下。
我们可以使用2命令线公共事业采取文件或文件夹的归属,然后授予完全控制访问权限管理员小组,假想您是成员的。 2命令行句法是作为下面。 注意全路径应该是包括的,如果您不是在当前目录和跑这些命令, 指令提示必须在高的方式下.
为文件:
takeown /f file_name /d y
icacls file_name /grant管理员:F
为目录(将递归地进行行动) :
takeown /f directory_name /r /d y
icacls directory_name /grant管理员:F /t
您能也准备了a 窗口壳批剧本 那自动化过程为是不能进入和不可删除的容易的作为文件和文件夹。
如果您不是舒适的工作与命令行,您能使用Windows Explorer也做任务。 但被警告它是的一个长的过程,如详述 如何采取归属和津贴允许指南.
这篇文章是reposted 技巧和把戏.
重要: 这是现状提供,不用保单的机器翻译的页。 计算机翻译也许是难了解。 参见 原始的英国文章 每当可能。
分享并且贡献或者得到技术支持并且帮助在 我的数字式生活论坛.
相关文章
- 从景色新的菜单去除或删除公文包
- 在哪里Thumbs.db在景色?
- 如何采取归属和格兰特允许在窗口景色
- 窗口景色系统破烂物擦净剂
- Recover and Reclaim ‘Lost’ Disk Space After Installing Windows Vista Service Pack 1 (SP1)
- Delete Browsing History for IE7 By Using Command Prompt
- Rename “Windows PC 2″ Computer Name in Windows Mobile Device Center (WMDC)
- Delete Files or Folders Locked by Windows Via Unlocker 1.8.7
- Delete Your Computer Tracks with Advanced Privacy Cleaner 1.1
- How to Rename Multiple or A Series of Files in Windows Vista

































May 25th, 2007 16:12
[...] possible to take ownership and grant full control permissions from command line. Or you can also prepare a Windows shell batch script that easily perform the task by typing simple [...]
June 29th, 2008 15:40
I still cannot delete my camtasia folders on my desktop using your instructions or these instructions. They only helped me remove a couple JPG files I been try’in to get rid of. CAN SOMEONE PLEASE HELP ME!
Regards,
August 20th, 2008 11:42
good job!
August 24th, 2008 13:37
This doesn’t seem to do any good on my Vista Ultimate system. Sometimes there are files that I simply cannot delete, even after having ownership and running the icacls command.
I have no idea what’s causing it. Sometimes, I can leave the file alone and come back to it later and it will delete just fine. Other times, it simply will not delete without unmounting and remounting the entire drive.
Oddly enough, the files don’t show up anywhere in any handles (checked via process explorer) AND I can even rename the files successfully, which would imply that the files are not locked. And yes, the files still won’t delete even after renaming.
There is something strange afoot with Vista files… not sure what…
August 28th, 2008 19:27
Had exactle the same problems here.
Usually i don’t like to use external programs, but this one helped.
http://ccollomb.free.fr/unlocker/