If you run SC create, "description…" appears ..." Help but cannot execute

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.