How do I create a scheduled task, via command line, which includes advanced options

Posted by David on Stack Overflow See other posts from Stack Overflow or by David
Published on 2010-06-10T16:39:29Z Indexed on 2010/06/10 16:42 UTC
Read the original article Hit count: 502

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.

Currently, I can create a scheduled task which runs every 10 minutes, starting at 16:00:00, daily, by using the following command:

SCHTASKS.EXE /CREATE /SC MINUTE /MO 10 /TN "Scheduled task name" /ST 16:00:00 /SD 01/01/2000 /TR task.bat /RU SYSTEM

The question is, how do I modify the previous command so that it stops running at 06:00:00?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about command-line