Windows Service to run a function at specified time

后端 未结 7 1881
一生所求
一生所求 2020-12-02 11:57

I wanted to start a Windows service to run a function everyday at specific time.

What method i should consider to implement this? Timer or using threads?

7条回答
  •  醉话见心
    2020-12-02 12:25

    Are you sure, you need a service, that runs only one time per day?

    Maybe Windows Task Schedule will be better solution?

提交回复
热议问题