How can I recursively delete all files & directories that match a certain pattern? e.g. remove all the \".svn\" directories and the files they contain?
(Sadly DO
If you want to copy it without exporting and eliminating the .svn from the projects, you shold use the /EXCLUDE option from XCOPY.
Like this:
xcopy /S/Q/EXCLUDE:svn.excludelist [path_from] [path_to\]
Observe the "\" (backslash) on the [path_to]. It determines that it's an output directory, so, xcopy will not question if it's a file or a directory.
The svn.excludelist is a text file containing the patterns to ignore on copy separated by line.
For Example:
.svn
.svn\
\.svn\
.obj
.o
.lib
\src\
And so on...