Command to recursively remove all .svn directories on Windows

后端 未结 8 1124
死守一世寂寞
死守一世寂寞 2020-12-07 08:12

I have a directory with many sub-directories. In each folder there is a subversion folder (.svn).

Is there a command in windows that will go through each folder and

8条回答
  •  感情败类
    2020-12-07 08:21

    Make a litte batch file with the following line and execute it from the parent folder under which there are .svn directories.

    FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"
    

    You can also issue the line below straight from the Command Prompt:

    FOR /F "tokens=*" %G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%G"
    

提交回复
热议问题