Exe to service possible?

人盡茶涼 提交于 2019-12-13 04:38:32

问题


Is it possible to have a .exe run as a windows service?


回答1:


You can use a Windows app called SC.exe : http://support.microsoft.com/kb/251192




回答2:


yes.

cygrunsrv (cygwin) http://web.mit.edu/cygwin/cygwin_v1.3.2/usr/doc/Cygwin/cygrunsrv.README or INSTSRV/SRVANY (microsoft) http://support.microsoft.com/kb/137890




回答3:


This works great in Windows:

http://www.codeproject.com/KB/system/xyntservice.aspx

JR




回答4:


A paid app, Application as service does this as well. It has a GUI for adding, removing and configuring services that makes things easy.

If you're comfortable with Cygwin though, it's free and I've used that to good effect also.




回答5:


This as well: RunAsService




回答6:


Nope. It must inherit from ServiceBase and be installed to the OS as a service... The os basically is the process/context your code runs in.



来源:https://stackoverflow.com/questions/2550110/exe-to-service-possible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!