日期:2014-05-17 浏览次数:20770 次
for /f %i in ('dir d:\*.svn /ad /s /b') do if "%~nxi"==".svn" rd "%i" /s /q 2>nul
------解决方案--------------------
test.bat
@echo off for /f "delims=" %%a in ('dir /s /b /ad "C:\test\"') do ( if "%%~nxa" equ ".svn" ( rd /s /q "%%a" ) )