In order to delete all \".svn\" files/folders/subfolders in \"myfolder\" I use this simple line in a batch file:
FOR /R myfolder %%X IN (.svn) DO (RD /S /Q \"%%X
Bizarre sidenote: if I use
FOR /R . %%X IN (*.svn) DO (echo "%%X")
instead of
FOR /R myfolder %%X IN (.svn) DO (RD /S /Q "%%X")
not only does it list all directories ending in .svn, it lists ALL THEIR CONTENTS as well. This is a BUG in the For command, it gave me an expansion where I gave it no wild card. Very strange.
Ken