Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC技巧如何刪除文件夾內容,同時保持樹狀結構的文件夾在Windows XP的PC

Have you came across a scenario whereby you want to delete all files in main and sub folders while maintaining folder tree structure?你碰到的情況下要刪除所有文件的主要和子文件夾,同時保持文件夾樹狀結構? By default, Windows doesn’t provide such a feature and you need to do it in a very manual way, by going to each of the folders and highlight all the files you want to delete followed by a Delete button pressed.默認情況下, Windows並不提供這樣的功能,你需要做的一個非常手動的方式,進入每個文件夾中,並強調所有文件要刪除之後,刪除按鈕按下。 You need to repeat the same action by going to each of the sub folders until all files have been deleted.您需要重複同樣的行動,將每個子文件夾,直到所有的文件已被刪除。 All these steps could be very time consuming and painful especially when the folder tree structure becomes more complicated.所有這些步驟可能是非常耗時和痛苦尤其是當該文件夾樹狀結構變得更加複雜。 Now with this simple utility, you can delete all files in main and its sub folders while maintaining the folder tree structure with only few steps.現在,這個簡單實用,您可以刪除所有文件的主要及其子文件夾,同時保持文件夾樹狀結構,只有幾個步驟。



This feature can be enabled in right click folder menu by editing the registry key.這一功能可啟用文件夾右鍵菜單中的編輯註冊表的關鍵。 Just follow instructions as mentioned below and you are done:只要按照指示下文提到的,你這樣做:

1) Go to Start -> Run, then type ‘regedit’ and press enter 1 )移至開始“ ->運行,然後鍵入'註冊表' ,然後按E NTER
2) Locate to HKEY_CLASSES_ROOT\Directory\shell 2 )查找到HKEY_CLASSES_ROOT \目錄\殼
3) Right click on ‘shell’ folder and choose New -> Key, name the new sub key as ‘Empty Folder Contents’. 3 )右擊'殼'的文件夾,並選擇新-> “的關鍵,命名新的子鍵為'空文件夾目錄。
4) Right click on ‘Empty Folder Contents’ and choose New -> Key, name the sub key as ‘Command’. 4 )右鍵點擊'空文件夾目錄,並選擇新-> “關鍵詞,名稱的子鍵為'指揮' 。
5) Under the ‘Command’ sub key, double click on ‘Default’ as located at right panel. 5 )在'命令'子鍵,雙擊'默認'作為設在右面板。 A small Edit String window will be pop up, then enter this value: cmd /c “cd /d %1 && del /s /f /q *.*”一個小編輯字符串窗口將彈出,然後輸入此值:西咪替丁/ C “類的CD / d個% 1 & &刪除/秒/ F索賠/ q一起*.* ”
6) Click OK button to save the setting. 6 )單擊確定按鈕保存設置。

Once this is done, right clicking on the folder (that you intend to delete the contents) and its sub folder contents, you will see ‘Empty Folder Contents’ has been added in the context menu.一旦做到這一點,右擊該文件夾(即你打算刪除的內容)和其子文件夾內容,您將會看到'空文件夾目錄'中增加了上下文菜單。 Just click on it and all the files in this folder as well as sub folders will be deleted without disturbing the original folder tree structure.只要按一下它的所有文件在此文件夾中,以及子文件夾將被刪除而不破壞原來的文件夾樹狀結構。

The那個 empty folder contents trick also works in Windows Vista空文件夾中的內容也欺騙在Windows Vista .

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



3 Responses to “Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC”三響應“技巧如何刪除文件夾目錄,同時保持文件夾樹結構在Windows XP的PC ”

  1. alias別名
    October 7th, 2008 00:09 08年10月7號00:09
    1

    an alternative would be to press F3, use * to search for all the files in folder.另一種是按F3 ,使用*尋找中的所有檔案資料夾中。 Sort by type and delete all the files and separate out all the subfolders.按類型和刪除所有的文件和單獨的所有子文件夾。 Would take a few seconds, would work on any computer instead of having to edit the registry.將採取幾秒鐘後,將工作的任何一台計算機,而不是編輯註冊表。

  2. Alexandre亞歷山大
    October 7th, 2008 02:22 08年10月7日02:22
    2

    Hi, [alias] said it all, F3 does work.您好, [別名]說,這一切,於F3沒有工作。 I´ve tried editing the registry as told above for the tip in Windows Vista x64, the instruction appears in right click menu, but did not delete anything.我試過編輯註冊表作為上述表示的冰山在Windows Vista版x64 ,指示出現在右鍵菜單中,但沒有刪除任何東西。

  3. Add “Empty Folder Contents” To Vista Right Click Context Menu To Delete Files Without Removing Folders » My Digital Life購買“空文件夾內容”到Vista ,請右擊上下文菜單中刪除文件但不刪除文件夾»我的數字生活
    October 7th, 2008 18:24 08年10月7日18:24
    3

    [...] delete and remove the files, but not the folders that storing the files. [...]刪除,並刪除這些文件,但文件夾存儲的文件。 There is a trick to add “Empty Folder Contents” contextual item into right click context menu (much like how user access the “Delete” function) in [...]有一個帽子戲法添加“清空文件夾目錄”內容項目納入右擊上下文菜單(就像用戶如何使用“刪除”功能)在[...]

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> 您可以使用這些標籤: href="" title="">的<a <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收到的搜索字詞的文章

"+as empty folder" "context menu" “ +作為空文件夾” , “上下文菜單” - - Tips of How to Delete Folder Contents While Maintaining Folder Tree Structure in Windows XP PC 技巧如何刪除文件夾內容,同時保持樹狀結構的文件夾在Windows XP的PC - - delete content windows mobile 刪除內容的Windows Mobile - - DELETE COMPRESSED ZIPPED FILES 刪除壓縮的壓縮文件 - - how to delete files in a folder 如何刪除文件,文件夾 - -