Subversion gives you a nice “export” command which will export you a clean copy of your project. However, sometimes you will find yourself in front of a deep structure of code and folders which was provided by someone who just zipped up their working copy with all the .svn folders included .
Removing these folders is easy on unix systems, by doing something like this:
rm -rf `find . -type d -name .svn`
However, this elegant solution is not possible on Windows. So, how do you do it?
Make a litte batch file with the following line and execute it.
FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"