如何把bat文件或者exe可执行程序注册为windows服务,注册后如何删除?
运维
(1)
收藏
我要回答
注册服务:
sc create ServiceName binPath= "路径" start= auto displayname="显示的服务名"一定要注意等号后面的空格必须保留;删除服务:sc delete ServiceName
注册服务:
sc create ServiceName binPath= "路径" start= auto displayname="显示的服务名"
一定要注意等号后面的空格必须保留;
删除服务:
sc delete ServiceName