how to make start up program which starts when os starts

前端 未结 1 853
[愿得一人]
[愿得一人] 2021-01-29 12:48

Say i ve a C# program which does something,

I want this program keep running by itself or start executing automatically when the computer starts.

And how can i m

相关标签:
1条回答
  • 2021-01-29 13:30

    It sounds like you want to create a Windows Service

    Have a look here for some more information:

    http://msdn.microsoft.com/en-us/library/zt39148a(v=VS.80).aspx

    http://www.codeproject.com/Articles/14353/Creating-a-Basic-Windows-Service-in-C

    http://www.c-sharpcorner.com/UploadFile/mahesh/window_service11262005045007AM/window_service.aspx

    It is worth noting that Windows will not let you create a service that the user cannot terminate. This is due to security and performance. The only types of services that cannot be stopped, at least to my knowledge, are system drivers.

    0 讨论(0)
提交回复
热议问题