A Google search turned up software that performs the same functions as cron, but nothing built into Windows.
谷歌搜索结果显示,软件的功能与cron功能相同,但并没有内置在Windows中。
I'm running Windows XP Professional, but advice for any version of Windows would be potentially helpful to someone.
我运行的是Windows XP专业版,但对任何版本的Windows的建议都可能对某些人有帮助。
Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programatically or via the command line?
是否还有一种方法来调用这个特性(基于答案的方法称为任务调度器)是编程的还是通过命令行来调用的?
13 个解决方案
#1
257
For the original question, asking about Windows XP (and Windows 7): Windows Task Scheduler
对于最初的问题,询问Windows XP(和Windows 7): Windows任务调度程序。
For command-line usage, you can schedule with the AT command.
对于命令行用法,可以使用AT命令进行调度。
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.
对于较新的Microsoft OS版本,Windows Server 2012 / Windows 8,查看schtasks命令行实用程序。如果使用PowerShell,在Windows PowerShell中调度的任务cmdlet是为脚本编写的。
#2
22
The Windows "AT" command is very similar to cron. It is available through the command line.
“AT”命令的窗口与cron非常相似。它可以通过命令行获得。
#3
10
pycron is close match on Windows.
pycron在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
#4
9
The 'at' command.
“在”命令。
"The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command."
“AT命*命令和程序在指定的时间和日期在计算机上运行。调度服务必须运行以使用AT命令。
#5
9
Use the Windows Task Scheduler to schedule tasks over time and dates.
使用Windows任务调度器在时间和日期上安排任务。
#6
8
Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programatically [...]?
是否还有一种方法来调用这个特性(基于答案的是任务调度器)?
Task scheduler API on MSDN.
MSDN上的任务调度程序API。
#7
7
The closest equivalent are the Windows Scheduled Tasks (Control Panel -> Scheduled Tasks), though they are a far, far cry from cron.
最接近的是Windows预定任务(控制面板->计划任务),尽管它们与cron相差甚远。
The biggest difference (to me) is that they require a user to be logged into the Windows box, and a user account (with password and all), which makes things a nightmare if your local security policy requires password changes periodically. I also think it is less flexible than cron as far as setting intervals for items to run.
最大的区别(对我来说)是,它们要求用户登录到Windows框中,以及用户帐户(使用密码和所有),如果本地安全策略需要定期更改密码,这将使事情成为一场噩梦。我还认为它比cron更不灵活,因为它设置了要运行的项目的间隔。
#8
6
If you prefer good ol' cron, CRONw is the way to go.
如果你喜欢好酒,克劳是最好的选择。
Supported systems
* Windows 2000 (any version) works
* Windows XP (SP 2) works
* Windows Server 2003 works
* Windows NT 4 (SP 6) should work but not tested
* Windows 3.11, Windows 95,
Windows 98, Windows ME,
Windows XP beneath SP2 not supported by design
#9
5
Not exactly a Windows version, however you can use Cygwin's crontab. For install instructions, see here: here.
不完全是Windows版本,但是你可以使用Cygwin的crontab。有关安装说明,请参见此处:此处。
#10
5
There is NNCron for Windows. IT can schedule jobs to be run periodically.
这是Windows的NNCron。它可以定期调度作业。
#12
2
In addition to Windows Task Scheduler you also have 'at' on Windows. I'm not sure how it differs from Task Scheduler besides the fact that it has a command line interface.
除了Windows任务调度器,你还可以在Windows上使用。我不确定它与任务调度器有什么不同,除了它有一个命令行接口之外。
#1
257
For the original question, asking about Windows XP (and Windows 7): Windows Task Scheduler
对于最初的问题,询问Windows XP(和Windows 7): Windows任务调度程序。
For command-line usage, you can schedule with the AT command.
对于命令行用法,可以使用AT命令进行调度。
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.
对于较新的Microsoft OS版本,Windows Server 2012 / Windows 8,查看schtasks命令行实用程序。如果使用PowerShell,在Windows PowerShell中调度的任务cmdlet是为脚本编写的。
#2
22
The Windows "AT" command is very similar to cron. It is available through the command line.
“AT”命令的窗口与cron非常相似。它可以通过命令行获得。
#3
10
pycron is close match on Windows.
pycron在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
#4
9
The 'at' command.
“在”命令。
"The AT command schedules commands and programs to run on a computer at a specified time and date. The Schedule service must be running to use the AT command."
“AT命*命令和程序在指定的时间和日期在计算机上运行。调度服务必须运行以使用AT命令。
#5
9
Use the Windows Task Scheduler to schedule tasks over time and dates.
使用Windows任务调度器在时间和日期上安排任务。
#6
8
Is there also a way to invoke this feature (which based on answers is called the Task Scheduler) programatically [...]?
是否还有一种方法来调用这个特性(基于答案的是任务调度器)?
Task scheduler API on MSDN.
MSDN上的任务调度程序API。
#7
7
The closest equivalent are the Windows Scheduled Tasks (Control Panel -> Scheduled Tasks), though they are a far, far cry from cron.
最接近的是Windows预定任务(控制面板->计划任务),尽管它们与cron相差甚远。
The biggest difference (to me) is that they require a user to be logged into the Windows box, and a user account (with password and all), which makes things a nightmare if your local security policy requires password changes periodically. I also think it is less flexible than cron as far as setting intervals for items to run.
最大的区别(对我来说)是,它们要求用户登录到Windows框中,以及用户帐户(使用密码和所有),如果本地安全策略需要定期更改密码,这将使事情成为一场噩梦。我还认为它比cron更不灵活,因为它设置了要运行的项目的间隔。
#8
6
If you prefer good ol' cron, CRONw is the way to go.
如果你喜欢好酒,克劳是最好的选择。
Supported systems
* Windows 2000 (any version) works
* Windows XP (SP 2) works
* Windows Server 2003 works
* Windows NT 4 (SP 6) should work but not tested
* Windows 3.11, Windows 95,
Windows 98, Windows ME,
Windows XP beneath SP2 not supported by design
#9
5
Not exactly a Windows version, however you can use Cygwin's crontab. For install instructions, see here: here.
不完全是Windows版本,但是你可以使用Cygwin的crontab。有关安装说明,请参见此处:此处。
#10
5
There is NNCron for Windows. IT can schedule jobs to be run periodically.
这是Windows的NNCron。它可以定期调度作业。
#11
#12
2
In addition to Windows Task Scheduler you also have 'at' on Windows. I'm not sure how it differs from Task Scheduler besides the fact that it has a command line interface.
除了Windows任务调度器,你还可以在Windows上使用。我不确定它与任务调度器有什么不同,除了它有一个命令行接口之外。