title: C# How can I trigger an event at a specific time of day?
body: <p>I'm working on a program that will need to delete a folder (and then re-instantiate it) at a certain hour of the day, and this hour will be given by the user.</p>
  
  <p>The hour will most likely be during the night, because that's when nobody is accessing the folder (it's outside working hours). Is there a way to trigger that event at that certain hour?</p>
  
  <p>I know about timers, but is there an easier way to do this without a timer that ticks and checks to see what time it is?</p>
  
  <p><strong>EDIT</strong>: Maybe I wasn't specific enough. I want to trigger a method to do something, without having to first compile it in a separate executable. This method is part of a bigger class that is implemented as a Windows Service. So this service continuously runs, but at a certain time of day, it should trigger this function to delete the folder.</p>
  
  <p>Thanks.</p>