title: How to schedule the start and stop of a Windows service?
body: <p>I've a .NET windows service that should start at 7:00 and stop at 23:00 each day, running continuously in background.</p>
  
  <p>While I can code the service so that it sleep between 23 and 7, I would prefer a system configuration (something like <a href="http://en.wikipedia.org/wiki/Cron" rel="noreferrer">cron</a> in unix).</p>
  
  <p>How can I do this on Windows 7?</p>
  
  <p>Note that, if system boot up after 7:00, the service should start immediatly.</p>