在当前目录下建立SVN版本库


  1. [代码]在当前目录下建立SVN版本库(Repository)

svnadmin create %~dp0

  1. [代码]设置Subversion服务器开机自动启动的Windows服务

CD..
sc create svnserve binpath= "\"C:\Program Files\svn-win32-1.7.11\bin\svnserve.exe\" --service --root %cd%" displayname= "Subversion Server" depend= tcpip start=auto

  1. [代码]将Subversion服务删除

sc delete svnserve

  1. [代码]启动Subversion服务

sc start svnserve

  1. [代码]打开IE访问SVN站点

call :opensvn "%cd%"
:opensvn
"C:\Program Files\Internet Explorer\iexplore.exe" "SVN://localhost/%~n1/"

panda /
Published under (CC) BY-NC-SA in categories svn  tagged with svn