There may be need for Windows user to quickly delete and empty all files content inside a myriad hierarchy of folders, but maintaining and preserving the structure of the folders tree. In other words, user wants to just delete and remove the files, but not the folders that storing the files. There is a trick to add “Empty Folder Contents” contextual item into right click context menu (much like how user access the “Delete” function) in Windows XP, which works on Windows Vista, also Windows Server 2003 and 2008 as well.
To enable the “Empty Folder Contents” right click context menu command, just follow these steps:
- Run Registry Editor (regedit).
- Navigate to the following registry key:
- Right click on shell folder, and then choose New -> Key. Name the new subkey as Empty Folder Contents, or anything you would like.
- Right click on Empty Folder Contents and choose New -> Key. Name the sub-key as Command.
- Under the Command sub-key, double click on the Default value data that is located at right pane.
- On the pop-up “Edit String” dialog window, enter the following value:
cmd /c "cd /d %1 && del /s /f /q *.*"
- Click OK button to save the setting, and exit from Registry Editor.
For user who doesn’t want to manually edit and mess with the system registry, download empty-folder-contents.zip and apply to merge the empty-folder-contents.reg values to registry.
Now, just right click on the folder and select Empty Folder Contents to delete all its file contents recursively into all sub-directories, but the the sub-folders will not be touched and preserved.
Share This Post
- Able2Extract Professional 11 Review – A Powerful PDF Tool
- How to Install Windows 10 & Windows 8.1 with Local Account (Bypass Microsoft Account Sign In)
- How to Upgrade CentOS/Red Hat/Fedora Linux Kernel (cPanel WHM)
- How to Install Popcorn Time Movies & TV Shows Streaming App on iOS (iPhone & iPad) With No Jailbreak
- Stream & Watch Free Torrent Movies & TV Series on iOS with Movie Box (No Jailbreak)
- Zemana AntiMalware Premium Free Download For Limited Time
- Microsoft Edge Dev 188.8.131.52 New Updated Now Available for Download
- Bitdefender Total Security 2020 Free Download With Genuine License Series Key
- Norton Security Deluxe Free Download With 3 Months Genuine License Serial Key
- Google Chrome 76 Released – Here the Full Changelog and Download Links