建立一個txt文檔,拷貝如下代碼到檔案夾根目錄下 for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn" 然後重新儲存,修改字尾名為bat即可,如delSVN.bat