开发者

Exe to service possible?

开发者 https://www.devze.com 2022-12-25 08:34 出处:网络
Is it possible 开发者_如何转开发to have a .exe run as a windows service?You can use a Windows app called SC.exe : http://support.microsoft.com/kb/251192yes.

Is it possible 开发者_如何转开发to have a .exe run as a windows service?


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


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


This works great in Windows:

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

JR


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.


This as well: RunAsService


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消