Windows Help Forum  

Windows Tips, Tutorials & Articles Submit & Discuss Windows 7 & Windows Vista Tips, Tutorials & Articles.


Reply
 
Thread Tools Display Modes
  (#1 (permalink)) Old
dmudgal Offline
Windows Enthusiast
 
dmudgal's Avatar
 
Posts: 109
Join Date: Aug 2008
Cool Add "Delete Folder Contents" to Right Click Context Menu - 01-29-2009, 02:37 PM

With the help of this tutorial you can add the option Delete Folder Contents to the right-click context menu which appears when you right-click a folder.This would come handy at times when you want to delete all the files inside a folder and all it’s sub-folders without deleting the folders themselves.





Here’s how you can do this:

* Click on Start button, type regedit in the search box and hit enter.

* In Regedit, go to: HKEY_CLASSES_ROOT\Directory\shel

* Right-click on shell, create a new Key and name it Delete Folder Contents



v

v



* Again right-click on Delete Folder Contents, create a new Key and name it command



* In the right pane, double-click on (Default) string value and type

cmd /c "cd /d %1 && del /s /q *.* in the value data field and hit OK



* Close Registry Editor and your done


www.animateindia.blogspot.com
   
Reply With Quote
  (#2 (permalink)) Old
Doug_72 Offline
Windows Enthusiast
 
Doug_72's Avatar
 
Posts: 95
Join Date: Jul 2008
Location: Provo, Utah
Default 01-29-2009, 03:25 PM

Interesting--saves you the trouble of opening folder, selecting all & then deleting....
   
Reply With Quote
  (#3 (permalink)) Old
iMav Online
Microsoft MVP
 
iMav's Avatar
 
Posts: 906
Join Date: Jul 2008
Default 01-29-2009, 03:40 PM

Yup, this is a neat trick. Applicable to Vista too. Here is the registry file for the same:

Download
   
Reply With Quote
  (#4 (permalink)) Old
HappyAndyK Offline
Site Administrator
 
HappyAndyK's Avatar
 
Posts: 3,347
Join Date: Jun 2008
Default 01-29-2009, 03:42 PM

Works on Vista & Win 7 too.

Oops, just saw your post iMav.
   
Reply With Quote
  (#5 (permalink)) Old
dmudgal Offline
Windows Enthusiast
 
dmudgal's Avatar
 
Posts: 109
Join Date: Aug 2008
Default 01-29-2009, 04:39 PM

Thanks Manan for the dd link


www.animateindia.blogspot.com
   
Reply With Quote
  (#6 (permalink)) Old
roraniel Offline
Gold Member
 
roraniel's Avatar
 
Posts: 647
Join Date: Oct 2008
Location: Chapel Hill, NC. USA
Default 01-29-2009, 04:47 PM

Cool beans!!!

Quote:
Originally Posted by iMav View Post
Yup, this is a neat trick. Applicable to Vista too. Here is the registry file for the same:

Download


http://www.linkedin.com/in/randylmiller - Dell 640m Laptop - Windows 7 Ultimate
   
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


 
Partner Links












Copyright © 2007 - 2010 The Windows Club

Search Engine Friendly URLs by vBSEO 3.3.0