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