新建一个txt文档,拷贝如下代码到文件夹根目录下 for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn" 然后重新保存,修改后缀名为bat即可,如delSVN.bat