递归删除所有SVN文件

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION


set delPath=D:\PathWantToDelete
set suffix=.svn


for /f %%i in ('dir /s /b /A:H %delPath%') do ( 
	if "%%~xi"  == "%suffix%" (
		del "%%i\*" /q /a
		rd "%%i" /s /q
	)
)


for /f %%i in ('dir /s /b %delPath%') do ( 
	if "%%~xi"  == "%suffix%" (
		del "%%i\*" /q /a
		rd "%%i" /s /q
	)
)
pause

你可能感兴趣的:(SVN)