脚 本 之 家 www.jb51.net
页面导航: 首页实用技巧应用技巧 → 正文内容

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

发布:dxy 字体:[增加 减小] 类型:转载
命令行使用sc命令.
关于sc命令的详解,请自行查看帮助(sc /?),在此只简单提及如何加入系统服务功能.
加入服务:
sc create ServiceName binPath= 路径 start= auto
(等号后面的空格必须)
删除服务:
sc delete ServiceName
e.g
将Tomcat加入到系统服务中:
sc create Tomcat binPath= F:\apache-tomcat\bin\startup.bat start= auto
将Tomcat服务删除:
sc delete Tomcat

文章评论

共有 位脚本之家网友发表了评论我来说两句

最 近 更 新
热 点 排 行