sc命令创建和卸载服务

Posted 乌鸦也能展翅高飞

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sc命令创建和卸载服务相关的知识,希望对你有一定的参考价值。

创建服务 HelloWindowsService

sc create HelloWindowsService binpath= "D:\WindowsService\HelloWindowsService.exe" displayname= "HelloService" start= auto displayname= "HelloWindowsService"

注意:“=”前面没有空格,后面有空格。

 

卸载服务

sc delete HelloWindowService(服务名)

以上是关于sc命令创建和卸载服务的主要内容,如果未能解决你的问题,请参考以下文章