Get rid of annoying dos windows

Source: Internet
Author: User

Background: Friends provide a windows2003 as a version of the server (if it is Linux will not have this piece) so have to start the Svnserve in the DOS window, annoying is to shut down the DOS window, the service is stopped, but always open that DOS window is also a hindrance, So try a few methods, the results are not good, such as in the bat script plus @echo off, or exit is not, it seems only to find another way

Later, trying to use Svnserve as a service for Windows, the problem was solved

Use DOS commands as follows:

Installation Services

SC create Svnservice binpath= "D:/subversion/bin/svnserve.exe--service-r e:/projectversion" displayname= "Svnservice" Depend= Tcpip

Delete Service

SC Delete Svnservice

Modify Configuration

sc config svnservice binpath= "d:/subversion/bin/svnserve.exe--service-r e:/projectversion" displayname= "Svnservice" Depend= Tcpip

Set to self-boot

sc config svnservice start= auto

Start a service

net start Svnservice

You can also not write a script, directly manipulate the service interface, anyway, is also a matter of once and for all, write not to write a script does not matter

This article bypasses the DOS boot service by wrapping a process as a Windows service, so there is no DOS window

Shutdown problem, but not for all cases, such as a application, specific situation analysis

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.