There are a lot of precautions for executing this command on the Internet. You can check whether it is original or transferred. However, one note is not mentioned, that is, if there is a space in the path, the direction of the backslash is correct as follows:
SC create svnservice binpath = "\" G: \ Program Files \ subversion \ bin \ svnserve.exe \ "-- service-R G: \ SSH \ svnrepository \ xssh "displayname =" svnservice "depend = TCPIP start = auto
SC start svnservice
Pause
If it is written as follows:
SC create svnservice binpath = "/" G:/program files/subversion/bin/svnserve.exe/"-- service-R G: /ssh/svnrepository/xssh "displayname =" svnservice "depend = TCPIP start = auto
No error is reported after running. The following message is displayed:
Description:
Create a service item in the Registry and Service database.
Usage:
SC <Server> Create [service name] [binpath =] <option1> <option2>...
Option:
Note: The option name includes the equal sign.
A space is required between equal signs and values.
Type = <own | share | interact | kernel | filesys | rec>
(Default = own)
Start = <boot | system | auto | demand | disabled | delayed-auto>
(Default = demand)
Error = <normal | severe | critical | ignore>
(Default = normal)
Binpath = <binarypathname>
Group = <loadordergroup>
Tag = <Yes | NO>
Depend = <dependency (separated by a slash)>
OBJ = <accountname | objectname>
(Default = LocalSystem)
Displayname = <display name>
Password = <password>
In addition
Services. MSC
it doesn't matter either. Click "my computer"-> manage to find the service, which is the same. No, go to c: \ windows \ system32 and find the file to run.