首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > CVS SVN >

剔除SVN信息的脚本

2012-10-30 
删除SVN信息的脚本Rem @echo offRem for /f skip1 %%a in (wmic logicaldisk where drivetype3 g

删除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

热点排行