What is the Windows version of cron?
A Google search turned up software that performs the same functions as cron, but nothing built into Windows.
I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone.
Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programatically or via the command line?
For the original question, asking about Windows XP (and Windows 7): Windows Task Scheduler
For command-line usage, you can schedule with the AT command.
For newer Microsoft OS versions, Windows Server 2012 / Windows 8, look at the schtasks command line utility.
If using PowerShell, the Scheduled Tasks Cmdlets in Windows PowerShell are made for scripting.
The Windows "AT" command is very similar to cron. It is available through the command line.
pycron is close match on Windows.
The following entries are supported:
1 Minute (0-59)
2 Hour (2-24)
3 Day of month (1-31)
4 Month (1-12, Jan, Feb, etc)
5 Day of week (0-6) 0 = Sunday, 1 = Monday etc or Sun, Mon, etc)
6 User that the command will run as
7 Command to execute
链接地址: http://www.djcxy.com/p/38906.html
上一篇: Windows服务vs计划任务
下一篇: 什么是cron的Windows版本?