How to remove all “.svn” folders in Windows XP & Vista?

The application is really big with lots of features and all. But when I tried to copy the source code into beanstalk repository I came to see the “.svn” folders are already created in the application. Delete “.svn” folders in the project is a tedious process since I am using Windows Vista for development. If my operating system was Linux simple “rm” command with a regular expressionwill do. So I googled it for some help. I got really interesting tip to delete this folders. I would like to share it with you

The  best thing they suggest is creating a registry file (filename.reg) and execute [create a text file named svndelete.reg and insert the code snippet below there after double click on the file that will add registry entry] the code snippet below. Once reg file is executed you will get a menu item called “Delete SVN Folders”  in the context menu. Just right click on click on the “Delete SVN Folders” will delete all “.svn” folders in the directories recursively.

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\” \””

About selvam4win

I am Selvam. I am very jolly person and frank one.

Posted on August 3, 2011, in SVN, Uncategorized and tagged , . Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: