再亮一个SVN的脚本

来源:互联网 发布:怎么测网络的丢包率 编辑:程序博客网 时间:2024/05/21 10:40

为了解决动态测试软件VectorCAST与持续集成构建工具的集成,需要引入SVN工具,在自己机器上建了一个服务器,SVN服务启动脚本如下:

 

@echo off
REM- Option for START
IF "%1"=="start" GOTO _START
IF "%1"=="Start" GOTO _START
IF "%1"=="START" GOTO _START
REM- Option for STOP
IF "%1"=="stop" GOTO _STOP
IF "%1"=="Stop" GOTO _STOP
IF "%1"=="STOP" GOTO _STOP
REM- Option for NONE
IF "%1"=="" GOTO _ERROR
GOTO _END

:_START
sc create svnservice binPath= "d:/svn/bin/svnserve.exe --service -r d:/svn/projects" DisplayName= "SVNService" depend= Tcpip
net start svnservice
GOTO _END

:_STOP
net stop svnservice
sc delete svnservice
GOTO _END

:_ERROR
echo Please select START STOP

:_END

原创粉丝点击