且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在注销时运行我的应用程序

更新时间:2023-10-22 22:08:22

您可以使用将Redis作为Windows服务运行 [ ^ ]运行你的或几乎任何exe作为Windows服务,
You can use the code from Running Redis as a Windows Service[^] to run your, or almost any exe as a Windows Service,


几乎在所有情况下,你真的需要开发Windows服务应用程序;此应用程序类型完全是为您的目的而设计的,它也可以在系统加载后自动重新启动;这是其中一个选择。请参阅:

http://en.wikipedia.org/wiki/Windows_service [ ^ ],

http://msdn.microsoft.com/en-us/library/d56de412%28v=vs .110%29.aspx [ ^ ],

http://msdn.microsoft.com/en-us/library/y817hyb6%28v=vs.110%29.aspx [ ^ ]。



-SA
In almost all cases, you really need to develop a Windows Service application; this application type is designed exactly for your purpose, it can also be automatically restarted after the system is loaded; this is one of the options. Please see:
http://en.wikipedia.org/wiki/Windows_service[^],
http://msdn.microsoft.com/en-us/library/d56de412%28v=vs.110%29.aspx[^],
http://msdn.microsoft.com/en-us/library/y817hyb6%28v=vs.110%29.aspx[^].

—SA