Today the system was re-installed, and subversion services had to be re-installed. Enter the code as usual:
SC create Svnserve binpath= "D:\PortableApps\svn\svnserve.exe--service-r e:\svn" displayname= "Subversion" depend= TCPIP Start=auto
But there was a hint of the following:
D:\PORTABLEAPPS\SVN>SC Create Svnserve binpath= "D:\PortableApps\svn\svnserve.exe--service-r e:\svn" displayname= "Subversion" Depend=tcpip start=autocreates a service entry in the registry and service DATABASE.SYNTAX:SC Create [service Name] [binpath=] ... CREATE OPTIONS:NOTE:The option name includes the equal sign. Type= <own|share|interact|kernel|filesys|rec> (default = Own) start= <boot|system|auto|demand|disabled > (default = Demand) error= <normal|severe|critical|ignore> (default = Normal) binpath= group= tag= <yes|no> depend= <dependencies (Separated by= "" (forward= "" slash)) = "" > obj= <accountname| Objectname> (default = LocalSystem) displayname=
I checked the registry carefully, there is no service of the same name! Wasted half an hour, only to understand, binpath=, dispalyname=, depend= behind is must have a space. Otherwise, the execution will not succeed. This grammar, too strange ...
So, the correct code should look like this:
SC create Svnserve binpath= "D:\PortableApps\svn\svnserve.exe--service-r e:\svn" displayname= "Subversion" depend= tcpi P start= Auto
So, how did I succeed in doing it? Thinking carefully, the previous code was copied directly from the SVN help: em23:
From:http://zengrong.net/post/457.htm
SVN SC create command line creation service self-start