用sc.exe将程序加入windows系统服务

用sc.exe将程序加入windows系统服务

命令行使用sc命令.

关于sc命令的详解,请自行查看帮助(sc /?),在此只简单提及如何加入系统服务功能.

加入服务:

sc create ServiceName binPath= 路径 start= auto

(等号后面的空格必须)

删除服务:

sc delete ServiceName

e.g

将Tomcat加入到系统服务中:

sc create Tomcat binPath= F:apache-tomcatbinstartup.bat start= auto

将Tomcat服务删除:

sc delete Tomcat 

用sc.exe将程序加入windows系统服务

相关文章:

你感兴趣的文章:

标签云: