Sunday, January 2, 2011

windows script to recursively delete svn folders

The following adds a "delete svn folders" command to your right-click folder options. I found it to be very useful.

1.) make a new text file on your desktop, copy and paste the following:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeleteSVN]
@="Delete SVN Folders"

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


2.) save, then rename the file extension to .reg

3.) double click to add it to your registry

No comments:

Post a Comment