Windwos 添加删除服务

开始”输入“cmd”右键“命令提示符”,使用“管理员运行”

输入命令 sc create KPMService binPath= D:\publish\KPMService\KPM.Service.exe start= auto

       解释:create 创建 binPath :绝对路径 start:启动方式

       注意: 在binPath= 中,=前面不能有空格,=后面必须有一个空格

删除服务,执行命令:

        sc delete 服务名称

posted @ 2024-03-24 09:20  edolf  阅读(25)  评论(0编辑  收藏  举报