Here Mudassar Ahmed Khan has explained how to build a simple Windows Service that repeats a Task periodically at N intervals and as well as once a day at specific (certain) time of day using C# and VB.Net.
The Windows service will support two modes
1. Interval mode: where Windows Service execute a task at regular intervals after some delay
2. Daily mode: where the Windows Service will execute a task at specific (certain) time of day.