Prevent command "del /s" from entering a folder

Posted by jzuniga on Stack Overflow See other posts from Stack Overflow or by jzuniga
Published on 2010-06-09T13:25:42Z Indexed on 2010/06/09 14:42 UTC
Read the original article Hit count: 354

Filed under:
|
|
|
|

I need to recursively remove unnecessary files from a svn repository and i have the following batch file to do this:

@echo on
del /s ~*.*
del /s *.~*
del /s Thumbs.db

However, this is also deleting the entries under the .svn/ subfolders. Is there any way to prevent this commands from being executed under the .svn/ folders so that it doesn't mess things up?

Thanks in advance!

EDIT: A solution using Bash (cygwin) would also work for me since i just need to do this once.

© Stack Overflow or respective owner

Related posts about svn

Related posts about bash