首页 > 代码库 > window service 注册、启动、删除

window service 注册、启动、删除

sc命令
sc actionName serviceName
sc start serviceName
sc stop serviceName
sc delete serviceName : 删除注册的服务
sc create serviceName binpath start= auto depend= Tcpip
例子:
C:\Windows\system32>sc create MySVNService binpath= "D:\DevInstall\SVNSubVe
\bin\svnserve.exe --service -r E:\SVNRepository" start= auto depend= Tcpip

window service 注册、启动、删除