2007-09-10

Add shell command in Windows to delete folders

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS]
@="Delete CVS Folders"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteCVS\command]
@="cmd.exe /c \"TITLE Removing CVS Folders in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (.cvs) DO RD /s /q \"%%f\" \""


This script will add a context menu item in windows to delete specific folders from a folder (in this case CVS).
Create a .reg file, copy in it the code from above and double click it.

This code was not written by me, I just liked the idea and put it on my page for later use.
To visit the page this idea originates from, click here.

No comments: