(Note: this how-to requires you to edit your registry. You should ALWAYS back-up your registry before editing it. Don't complain at me if Windows stops working because you added or deleted the wrong key and can't fix it.)
1. Open the registry editor (type "regedit" in the Search box or the Start|Run box). Navigate to HKEY_CLASSES_ROOT\Directory\shell.
2. Right-click on shell and add a new key. Label it "Delete Folder Contents".

Now right-click on Delete Folder Contents and add a new key, labeling that key "Command".

3. Double-click on (Default) in the right-hand pane and type cmd /c "cd /d %1 && del /s /q *.* .

That's it. Now, when you right click on any folder, you'll see that "Delete Folder Contents" has been added to the context menu. Clicking on it will delete every file and folder in that directory.

0 comments:
Post a Comment