2017-09-04 11:51:31

NSSM - the Non-Sucking Service Manager

NSSM

exe程序作为windows服务,开机启动

下载地址

之前使用的是vbs脚本

set wscriptObj = CreateObject("Wscript.Shell")   

wscriptObj.run "xxx.exe",0

0 参数表示不显示黑窗体 存在问题是必须手动连接远程桌面mstsc

NSSM 真正的 PowerBoot

command line.

Service installation

nssm install <servicename>

nssm install <servicename> <program>

nssm install <servicename> <program> [<arguments>]

Service removal

nssm remove

nssm remove <servicename>

Starting and stopping a service

nssm start <servicename>

nssm stop <servicename>

nssm restart <servicename>

Querying a service's status

nssm status <servicename>

本文链接:https://blog.zxysilent.com/post/nssm.html

-- EOF --