How to add a exe application run as a service(如何将一个可执行程序当作服务运行)?
来源:互联网 发布:金融大数据研究生 编辑:程序博客网 时间:2024/04/28 15:27
Need two tools:instsrv.exe and srvany.exe
1. Download it from the following link:
http://mooncat.51.net/ls/fu/srvinstw.rar
http://fgg.minidns.net/scripts/lb5000/attachment.cgi?forum=32&topic=116&postno=1&type=.zip
2. Run the following command in dos window to install a service
[path of instsrv.exe] [service name] [path of srvany.exe]
3. Write a .reg file to load some values to registry. Following is a sample in the .reg file.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/service name/Parameters]
"Application"="c://usr//local//bin//dmh_wish.exe"
"AppParameters"="-f dmh84_server startup "
"AppDirectory"="c://usr//local//bin"
4. Run the following command in dos window to remove a service.
[path of instsrv.exe] "[service name]" remove
- How to add a exe application run as a service(如何将一个可执行程序当作服务运行)?
- How to Run Redis as a Service under Windows
- Run a Java Application as a Service on Linux
- How to run WPF - XBAP as Full Trust Application(如何运行WPF -作为完全信任的应用XBAP)
- How to add a Linux service
- How to install JBoss AS 7 as a Linux service
- How to run SSIS Project as a SQL Job
- rcp(插件开发)How to add a folder to java build path as library
- How To Adding Help to a Service Provider Property Page(添加服务提供程序属性页)
- How to run a jar
- XP下运行VS2010生成程序报错:unable to find a version of the runtime to run this application
- 如何删除windows service (How to delete a windows service)
- How to Write a simple UEFI EDKII Application:如何编写一个UEFI简单的应用程序[5]
- 如何写一个UEFI EDKII的应用:how to write a UEFI EDKII application
- How to create Navigation Collection ,publish it as a pagelet and add to homepage ?
- How to run WPF - XBAP as Full Trust Application
- How to run application in Qt as administrator?
- [stackoverflow转载翻译练习]How to use a Bind maps as a web service?
- [Ref]软件测试基础知识
- 为struts2.0做好准备
- 设计模式杂谈
- 解决Window系统默认打开文件操作的错误绑定的问题
- 服务器软件安装备忘
- How to add a exe application run as a service(如何将一个可执行程序当作服务运行)?
- 在windows下安装cygwin的问题及解决办法。
- GridView中的 input file
- struts 2实现文件上传
- 类已死,接口万岁: Qi4j提出面向组合编程思想
- IOCP
- 实现自己的不定参数函数(类似printf)
- SQL 存储过程(1)
- struts2实现CRUD(增 删 改 查)