Windows XP Tips: Delete Contents from Folder without Deleting Folders Windows XP的提示:刪除從文件夾中的內容沒有刪除的文件夾
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一起*.* 。


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分享這個郵報


























Nice tip.尼斯小費。 Keep that coming.保持未來。

@Rakshit, @ Rakshit ,
Sure!當然! More tips on the way.更多提示的方式。
Nice tip Nirmal.尼斯冰山Nirmal 。 But you have to put the “warning” notes near the top before someone messed up their registry.但你必須把“警告”注意到上方附近的前有人搞砸的註冊表。
Great tip buddy.大冰山好友。 Will save everybody a lot of time.每個人都可以節省了很多時間。
Nice tip Nirmal thanks尼斯冰山Nirmal感謝
Very cool tip I have not heard about it before非常酷的小費我還沒有聽說這件事之前
Nirmal, I’ve tried it on XP and its not working, Did anyone get this working. Nirmal ,我已經嘗試過了,在XP和沒有工作,沒有人得到這份工作。
@Syahid, @ Syahid ,
You are right, the warning should be at the top.你說得對,警告應在上方。 I forgot that, thanks for that correction.我忘了,由於該更正。
@Venkat, @ Venkat ,
I have tried this on Vista and it was working fine, please make sure that you have entered the value with the correct number of spaces.我試圖對這個Vista和它的工作很好,請確認您已經進入了價值的正確數目的空格。
This is one good thing I was looking for after sendto option.這是一件好事我一直在尋找後,發送到選項。 Thanks nirmal, I will link you for sure in the next speed linking謝謝nirmal ,我會聯繫你肯定在未來的高速連接
@Ashish, @ Ashish ,
Glad that you liked the tip.高興的是,你喜歡的小費。
verkat, verkat ,
The following Key data works on WinXP SP2:下面的關鍵數據工程WinXP SP2的:
cmd /c cd /d %1 && del /s /f /q *.*西咪替丁/炭的CD / d個% 1 & &刪除/秒/ F索賠/ q一起*.*