sc.exe create XCGWebApp BinPath=E:\SitePublish\XCGWebApp\XCGWebApp.exe
## 启动服务
sc.exe start XCGWebApp
## 停止服务
sc.exe stop XCGWebApp
## 删除服务
sc.exe delete XCGWebApp
## 添加服务描述
sc description XCGWebApp "XCG"
## 改变服务的启动方式 手动/自动/禁用
sc.exe config XCGWebApp start= demand/auto/disabled

posted on 2024-05-20 17:31  邢帅杰  阅读(52)  评论(0编辑  收藏  举报