Prevent command "del /s" from entering a folder
- by jzuniga
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.