title: Best way to run process on certain hours
body: <p>Hi I have a <strong>Windows Service</strong> in <code>C#</code>. Inside my windows service I need to run a process on determined hours hh:mm:ss.</p>
  
  <p>For example I need to run the process at:</p>
  
  <ul>
  <li>09:50 hrs</li>
  <li>11.45 hrs </li>
  <li>15:15 hrs </li>
  <li>22:05 hrs</li>
  </ul>
  
  <p>(These hours can change, so Im thinking in storing those in a XML file)</p>
  
  <p>Right now I used to have a timer with interval of 6 hours, so every 6 hours the process was executed. Now the requirement is other. I need to run on a specific schedule.</p>
  
  <p>Also I was requested to add an option that the windows service can run the process on every X hours and Y minutes.</p>
  
  <p>Any clue how can I code that?</p>
  
  <p>Thanks.</p>