开机自启动服务创建(dos后台运行)

Posted on Posted in bat
Tips: 本文创建于2014年8月9日,已超过 2 年,内容或图片可能已经失效!

win-svn服务端开机自启

语法 (binPath和start等号后面有空格)

sc create 服务名称 binPath= "安装目录/svnserve.ext -r 版本库地址目录 --service" start= auto

创建

sc create SvnServer binPath= "D:/Program Files (x86)/Subversion/bin/svnserve.exe -r D:/SvnRepository --service" start= auto

删除

sc delete SvnServer

开启服务/停止服务

net start SvnServer
net stop SvnServer

Leave a Reply

Your email address will not be published. Required fields are marked *

two × four =