Delete Undeletable Files in Windows Vista刪除undeletable文件在Windows Vista
There are files and directories in Windows Vista that seem to impossible to delete and remove away.有文件和目錄在Windows Vista中似乎不可能刪除並刪除了。 These persistent undeletable files and folders sometimes can’t even be accessed no matter what, even by an administrator, and you’re pretty sure that the files are not locked by running process.這些持久性undeletable文件和文件夾,有時甚至不能訪問,不管是什麼,甚至由系統管理員,並且您相當肯定的文件不會被鎖定運行的過程。 This situation always happen especially if you perform in-place upgrade from Windows XP or install Windows Vista on another partition or hard disk drive, leaving the old XP used partition with its own data.這種情況總是發生,尤其是如果你在執行就地升級,從Windows XP或安裝Windows Vista的另一個分區或硬盤驅動器,離開舊XP中使用的分區與自己的數據。
The problem symptom occurs because the undeletable files and folders’ ACLs (Access Control Lists) were set for accounts with SIDs that applied to an old partition.問題症狀的發生原因,是因為undeletable文件和文件夾'的ACL (訪問控制列表)設置帳戶與小島嶼發展中國家的適用於一歲的分區。 So these data will effectively owned by nobody or non-existent user when view in Vista operating system.因此,這些數據將有效地所擁有的任何人或根本不存在的看法時,用戶在Vista作業系統。 In order to access the file for manipulation, modification or deletion, we will need to take control of the files under Vista.在以訪問該文件為操縱,修改或刪除,我們將需要採取控制的檔案,根據Vista的。
We can use 2 command-line utilities to take ownership of the files or folders, and then grant full control access permissions to Administrators group, which supposedly you’re a member of.我們可以使用2命令行工具,採取所有權的文件或文件夾,然後授予完全控制訪問權限,管理員組中,假定您的成員。 The 2 command line syntaxes are as below. 2命令行語法如下。 Note that the full path should be included if you’re not at the current directory, and to run these commands,請注意,完整路徑,應列入如果您不是在當前目錄,並運行這些命令, command prompt has to be in elevated mode命令提示符要在高架模式 . 。
For Files:檔案:
takeown /f file_name /dy takeown / f FILE_NAME的 /頤
icacls file_name /grant administrators:F icacls FILE_NAME的 /贈款管理員:女
For Directories (will perform action recursively):目錄(將執行動作的遞) :
takeown /f directory_name /r /dy takeown / f directory_name /俄/頤
icacls directory_name /grant administrators:F /t icacls directory_name /贈款管理員:女/噸
You can also prepared a您也可以準備了 Windows shell batch script Windows Shell的批處理腳本 that automate the process for easy take back the files and folders which is inaccessible and undeletable.自動化的過程中容易收回的文件和文件夾這是無法和undeletable 。
If you’re not comfortable working with command line, you can also using Windows Explorer to do the task.如果您沒有舒適的工作與命令行,您也可以使用Windows Explorer這樣做的任務。 But be warned that it’sa lengthy process, as detailed in但被警告說,這是漫長的過程,詳細情況 how to take ownership and grant permissions guide如何採取所有權和權限授予指南 . 。
This article has been reposted to此文章已經收到,以 Tip and Trick提示和伎倆 . 。
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明 :這是一個機器翻譯網頁是“按原樣”提供的擔保。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article原來的英語文章 whenever possible.只要有可能。
Share and contribute or get technical support and help at分享和貢獻,或取得技術的支持和幫助,在 My Digital Life Forums 我的數字生活論壇 . 。
Related Articles相關文章
- Remove or Delete Briefcase from Vista New Menu移除或刪除公事包,從Vista的新菜單
- Where is Thumbs.db in Vista?那裡是thumbs.db在Vista嗎?
- How to Take Ownership and Grant Permissions in Windows Vista如何採取所有權和授予權限,在Windows Vista
- Windows Vista System Junk Cleaner Windows Vista系統的垃圾清潔
- Recover and Reclaim ‘Lost’ Disk Space After Installing Windows Vista Service Pack 1 (SP1)收回並回收'失去'的磁盤空間後,安裝Windows Vista的Service Pack 1 ( SP1 )的
- Delete Browsing History for IE7 By Using Command Prompt刪除瀏覽歷史記錄,為在IE7中使用命令提示符
- Rename “Windows PC 2″ Computer Name in Windows Mobile Device Center (WMDC)重新命名為“ Windows PC機2 ”的電腦名稱,在Windows Mobile設備中心( wmdc )
- Delete Files or Folders Locked by Windows Via Unlocker 1.8.7刪除文件或文件夾鎖定由Windows通過unlocker 1.8.7
- Delete Your Computer Tracks with Advanced Privacy Cleaner 1.1刪除您的計算機跟踪與先進的隱私清潔1.1
- How to Rename Multiple or A Series of Files in Windows Vista如何重新命名多個或一系列的文件在Windows Vista

































May 25th, 2007 16:12 2007年5月25日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 [...]或您也可以編寫Windows外殼一批腳本很容易履行其承擔的任務輸入簡單的[ … … ]
June 29th, 2008 15:40 2008年6月29日15時40分
I still cannot delete my camtasia folders on my desktop using your instructions or我仍然無法刪除我的文件夾camtasia我桌面上使用您的指示或 these instructions.這些指示。 They only helped me remove a couple JPG files I been try’in to get rid of.他們只幫我刪除一對夫婦JPG文件i被try'in擺脫。 CAN SOMEONE PLEASE HELP ME!有人可以請幫助我!
Regards,關心,
August 20th, 2008 11:42 2008年8月20日11時42分
good job!做好!
August 24th, 2008 13:37 2008年8月24日13時37分
This doesn’t seem to do any good on my Vista Ultimate system.這似乎並沒有什麼好處,我Vista旗艦版系統。 Sometimes there are files that I simply cannot delete, even after having ownership and running the icacls command.有時有檔案,我根本無法刪除,甚至後,所有權和運行icacls指揮。
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.其他時候,它根本不會刪除未經unmounting和remounting整個驅動器。
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.奇怪,這些文件不顯示任何地方的任何處理(檢查通過Process Explorer的)和我什至可以重新命名檔案成功,這將意味著該文件沒有被鎖定。 And yes, the files still won’t delete even after renaming.是的,檔案仍不會刪除,甚至後改名。
There is something strange afoot with Vista files… not sure what…有一些奇怪的afoot與Vista的檔案…不知道是什麼…
August 28th, 2008 19:27 2008年8月28日19時27分
Had exactle the same problems here.曾exactle同樣的問題在這裡。
Usually i don’t like to use external programs, but this one helped.通常我不喜歡使用外部程序,但此一協助。
http://ccollomb.free.fr/unlocker/
September 7th, 2008 00:19 2008年9月7日0時19分
Well… thank you very much!以及…非常感謝你!
I’ve been trying to free up room on my 2nd drive that had an older Vista installation on it for quite a while.我一直在試圖免費空間對我的第二驅動器上有一個老年人Vista安裝上它相當長的一段時間。 Your command prompt advice worked perfectly.您的命令提示符的意見,工作完美。
Take the rest of the day off!採取其餘的一天!
Peter黃匡源