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 我的數字生活論壇 .



6 Responses to “Delete Undeletable Files in Windows Vista” 6回應“刪除undeletable文件在Windows Vista ”

  1. How to Take Ownership and Grant Permissions in Windows Vista » My Digital Life如何採取所有權和授予權限,在Windows Vista »我的數位生活
    May 25th, 2007 16:12 2007年5月25日16時12分
    1

    [...] 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外殼一批腳本很容易履行其承擔的任務輸入簡單的[ … … ]

  2. abell阿貝爾
    June 29th, 2008 15:40 2008年6月29日15時40分
    2

    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,關心,

  3. Pichy pichy
    August 20th, 2008 11:42 2008年8月20日11時42分
    3

    good job!做好!

  4. Kinryuu kinryuu
    August 24th, 2008 13:37 2008年8月24日13時37分
    4

    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的檔案…不知道是什麼…

  5. Marcel馬塞爾
    August 28th, 2008 19:27 2008年8月28日19時27分
    5

    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/

  6. Peter McCarthy彼得麥卡錫
    September 7th, 2008 00:19 2008年9月7日0時19分
    6

    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黃匡源

Leave a Reply離開的答复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <刪除日期時間= “ ” >的<em>的<i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱無評論


Custom Search

New Articles新的條款,

Incoming Search Terms for the Article傳入的搜索條件文章

can't delete file vista 無法刪除文件Vista的 - - delete files vista 刪除文件Vista的 - - delete file vista Vista的刪除文件 - - can't delete file in vista 無法刪除的文件在Vista - - vista can't delete file Vista無法刪除文件 - - vista cannot delete file Vista無法刪除文件 - - delete files in vista 刪除文件在Vista - - unable to delete file vista 無法刪除文件Vista的 - - vista delete file Vista中刪除檔案 - - cannot delete file vista 無法刪除文件Vista的 - - vista delete files Vista中刪除檔案 - - vista can't delete files Vista無法刪除文件 - - vista delete Vista中刪除 - - can't delete a file in vista 無法刪除的文件在Vista - - unable to delete file in vista 無法刪除的文件在Vista - - how to delete files in vista 如何刪除文件在Vista - - vista unable to delete file Vista中無法刪除文件 - - unable to delete files in vista 無法刪除的文件在Vista - - delete vista files 刪除Vista的文件 - - delete vista 刪除Vista的 - - can't delete a file vista 不能刪除文件Vista的 - - cannot delete file in vista 無法刪除的文件在Vista - - vista cannot delete files Vista無法刪除文件 - - Unable to delete files vista 無法刪除文件Vista的 - - delete file in vista 刪除文件在Vista - - vista undeletable file Vista的undeletable檔案 - - delete files from Vista 刪除文件從Vista的 - - unable to delete folder vista 無法刪除文件夾Vista的 - - deleting files in vista 刪除檔案在Vista - - vista can't delete a file Vista無法刪除文件 - - undeletable files vista undeletable Vista的文件 - - how to delete a file in vista 如何刪除一個文件在Vista - - windows vista delete file Windows Vista中刪除檔案 - - deleting files vista Vista中刪除檔案 - - vista file remover Vista的文件清 - - cannot delete file windows vista 無法刪除文件的Windows Vista - - Windows Vista Delete Files Windows Vista中刪除檔案 - - can't delete files in vista 無法刪除的文件在Vista - - delete files on vista 刪除文件在Vista - - delete files windows vista 刪除文件的Windows Vista - - vista unable to delete files Vista中無法刪除文件 - - vista deleting files Vista中刪除檔案 - - vista file delete Vista的文件刪除 - - delete undeletable files 刪除undeletable檔案 - - can't delete file on vista 無法刪除的文件在Vista - - undeletable file vista undeletable Vista的文件 - - deleting a file in vista 刪去一個文件在Vista - - delete file in use vista 刪除文件在使用Vista的 - - cannot delete a file vista 不能刪除文件Vista的 - - can't delete files vista 不能刪除文件Vista的 - -