Windows XP Tips: Delete Contents from Folder without Deleting Folders Windows XP的提示:刪除從文件夾中的內容沒有刪除的文件夾

Advertisements廣告

There may be many instances where you would want to delete all the contents inside the folder, but wanted to maintain the folder structure as such.可能有很多情況下,你想刪除其中的所有內容的文件夾內,但要保持文件夾結構等。 By default Windows does not provide any such option.默認情況下Windows不會提供任何此類的選擇。 If there are lots of folders inside a particular folder maintaining a folder structure, then its difficult to delete contents from all the folders.如果有很多文件夾內特定文件夾保持文件夾結構,那麼它很難從內容刪除所有文件夾。 This task can be done using a registry entry.這項工作可以做到使用註冊表項。

To do this go to Start-> Run and type ‘ regedit ‘.要做到這一點去啟動> “運行和類型註冊表 In the registry, navigate to HKEY_CLASSES_ROOT\Directory\Shell key.在註冊表中,瀏覽到HKEY_CLASSES_ROOT \目錄\殼的關鍵。 Right click on ‘Shell’ and then create the ‘ Empty folder Contents ‘ sub key with the New|Key.右鍵點擊'殼' ,然後創建' 空文件夾目錄 '子鍵與新|關鍵。 then create the command key in the same way.然後創建命令主要以同樣的方式。 Open ‘ Default ‘ by right clicking on it in the right hand side window.打開' 默認 '右擊它在右側窗口。 and fill it with the following entry- ‘ cmd /c “cd /d %1 && del /s /f /q *.* .並填補它與下面的入門' 指令/ C “類的CD / d個% 1 & &刪除/秒/ F索賠/ q一起*.*

registry.jpg

registry11.jpg

Once you close the registry, the new command will appear in the right click menu of the folder.一旦您關閉註冊表,新的命令將出現在右鍵菜單中的文件夾。 Now whenever you want to delete the contents, select “Empty Folder Contents” and only the contents will be deleted, the folder structure will remain intact.現在只要您想要刪除的內容,選擇“空文件夾目錄”和唯一的內容將被刪除,文件夾結構將保持不變。

NB: Please back up your registry before making any changes. 注:請備份您的註冊表之前做任何變更。

Share this Post分享這個郵報

StumbleUpon公司- 4848.pngDigg的- 4848.pngTechnorati的- 4848.png供稿- 4848.png美味- 4848.png

Comments評論


Add a comment添加評論

Translate Page網頁翻譯

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanПереведите к русскому/RussianΜεταφράστε στα ελληνικά/GreekVertaal aan het Nederlands/Dutchترجمة الى العربية/Arabic中文翻译/Chinese Traditional
中文翻译/Chinese Simplified한국어에게 번역하십시오/Korean日本語に翻訳しなさい /JapaneseTraduza ao Português/PortugueseTraduca ad Italiano/ItalianTraduisez au Français/FrenchTraduzca al Español/Spanish
Nirmal is a Software Engineer and Technology Blogger. Nirmal是一個軟件工程師和科技的Blogger 。 He is a Microsoft Most Valuable Professional in Windows Desktop Experience.他是微軟最有價值專家在Windows桌面體驗。
mvp印度技術博客