Thursday, May 10, 2012

Deleting the .svn folders from a subversion tree under Windows

Running this command in a folder that has been checked out from Subversion will remove the .svn folders in all sub-folders, cleaning it for copying to a CD.

FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q %%G

And that's it.