删除SVN信息的脚本
Rem @echo off
Rem for /f "skip=1" %%a in ('wmic logicaldisk where "drivetype='3'" get caption') do (
Rem for /f "delims=" %%b in ('dir /b /s /a-d %%a\1.bak 2^>nul') do del "%%b" /a/q/f
Rem )
Rem pause
Rem for /f "skip=1 delims=" %i in ('wmic datafile where "Extension='bak' and FileName='1'" get name') do @del %i
Rem @echo on
Rem @rem 删除SVN版本控制目录
Rem @rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn"
Rem @for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn"
Rem @echo completed
Rem @pause
Rem 删除SVN/CVS目录的bat脚本
@echo On
@Rem 删除SVN版本控制目录
@PROMPT [Com]
@for /r . %%a in (.) do @if exist "%%a\.svn" rd /s /q "%%a\.svn"
@Rem for /r . %%a in (.) do @if exist "%%a\.svn" @echo "%%a\.svn"
@echo Mission Completed.
@pause
@echo On
@Rem 删除CVS版本控制目录
@PROMPT [Com]#
@for /r . %%a in (.) do @if exist "%%a\CVS" rd /s /q "%%a\CVS"
@Rem for /r . %%a in (.) do @if exist "%%a\CVS" @echo "%%a\CVS"
@echo Mission Completed.
@pause