I want to write a Windows service that a user can schedule. those. the user can start the service every day from 9:00 to 18:00, or he can launch it every night, starting from the night of 12 hours at night until the next day in the morning of 6, etc. Is there any of the box.NET API that will help me do this? I know I can do this with scheduled tasks, but is there a way to do this programmatically?
My first answer is the question, why the service? But more importantly, the question is, why not use the powerful scheduler provided by the operating system?
, Windows - , . , - , . , , .
- Windows, , , .
API, .
, Quartz.NET Windows. cron.
, , , , , , , , , . .
, , .
( Windows, #), crontab . . , , cron. , , , , , , - , .
cron ( Atif Aziz) , .
: CronTab
!
Source: https://habr.com/ru/post/1697833/More articles:Best Versioning Solution for Oracle / ASP.NET? - version-controlAccess denied when creating virtual directory through web deployment project - tfsMySQL database versions when the code base does not have ORM - mysqlShould QA test strictly in terms of a black box? - qaHow to get Single XElement object using Linq for Xml? - c #Windows hangs during headless build - installerMoq'ing interface - c #Flash banners conflicting with pop-up blockers? - flashIs it possible to dynamically add data to PHP? - oopModification of key points - morphingAll Articles