I need a batch file that will recursively remove all directories with a certain filename. This is what I have so far and its not working.
FOR /D /r %%G IN ("*.svn") DO DEL %%G
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Wow I recently just did something exactly like this:
edit
FOR /F %%C IN ('dir *.svn /s /b') DO DEL %%~C\*.*FOR /D %%C IN ('dir *.svn /s /b') DO RMDIR %%~CYou probalby need to pass some parameters to
delto allow it to delete without asking yes/noAlternatively just do
svn exportto checkout code from the repository without those pesky .svn directories.