title: How do I create a scheduled task, via command line, which includes advanced options
body: <p>I'm trying to create a scheduled task (in WinXP) which runs every 10 minutes, starting at 16:00:00 to 06:00:00, daily, from the command line.</p>
  
  <p>Currently, I can create a scheduled task which runs every 10 minutes, starting at 16:00:00, daily, by using the following command:</p>
  
  <pre><code>SCHTASKS.EXE /CREATE /SC MINUTE /MO 10 /TN "Scheduled task name" /ST 16:00:00 /SD 01/01/2000 /TR task.bat /RU SYSTEM
  </code></pre>
  
  <p>The question is, how do I modify the previous command so that it stops running at 06:00:00?</p>