创建、停止、删除 windows服务

cmd console中,或保存成bat文件执行

sc create 服务名称 binpath= 执行文件路径 type= own start= auto displayname= 服务展示名称

=后面要有空格

net stop 服务名称
sc delete 服务名称

原文地址:https://www.cnblogs.com/xingbinggong/p/2851509.html