Thursday, July 31, 2008

Delete SVN Folders Windows Vista

In Windows XP there was no issue deleting SVN folders. I could just search for "SVN" in the directory and end up with a recursive list of SVN folders which I could delete through the Search interface. It doesn't work in Vista. Search and Delete works for other files, but for some reason those SVN files elude deletion. I can go to a directory directly and delete an SVN folder, but in the Search window nothing happens!

I found this which does work...

http://britishinside.com/archive/2008/03/06/The-Deleting-SVN-Folders-meme.aspx

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 _svn) DO RD /s /q \"%%f\" \""


Copy the text and paste it into a text file called 'svn.reg'. Save the file and open it to add these keys to your registry. Then all you have to do is right-click on the folder and choose "Delete SVN Folders". It's even easier than the Search and Delete method :)


Here's a Delete PDB files shell:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeletePDB]
@="Delete PDB Files"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\DeletePDB\command]
@="cmd.exe /c \"TITLE Removing PDB Files in %1 && COLOR 9A && FOR /r \"%1\" %%f IN (*.pdb) DO DEL /s /q \"%%f\" \""



.

1 comment:

Anonymous said...

Just select advanced options in the search widget and select "Search hidden files and folders"

Check This Out!

More Links to Good Information