Delete all files in a folder quickly

on Sunday, November 8, 2009

Let me show you a cool way of having an option to delete all files in a folder in the right click menu...

This will not remove your folder but only the contents inside it...

Here is how we do it...

1. Start->Run->regedit
2. Browse to HKEY_CLASSES_ROOT\Directory\Shell

3. In the left pane of the Registry editor make a new Key named "Delete Folder Files" (without quotes).

4. Right click the Delete Folder Files which we made now and create another key and name it "command" (without quotes).

5. In the Right hand pane corresponding to the key "command", you ll find a value named "(Default)".

6. Double click "(Default)" and assign it the value "cmd /c "cd /d %1 && del /s /q *.*" (without quotes.

You've done it and see how it looks....
Before I complete one word of caution  - This command will delete your files permanently; means that they will not be sent to Recycle bin.   It also deletes any subfolders, if any.

Subscribe via RSS