什么是 Windows 版本的 cron? [英] What is the Windows version of cron?

查看:35
本文介绍了什么是 Windows 版本的 cron?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

A Google 搜索 发现了与 cron 执行相同功能的软件,但没有内置于 Windows 中.

A Google search turned up software that performs the same functions as cron, but nothing built into Windows.

我运行的是 Windows XP Professional,但对于任何版本的 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?

推荐答案

对于最初的问题,询问 Windows XP(和 Windows 7):Windows 任务计划程序

For the original question, asking about Windows XP (and Windows 7): Windows Task Scheduler

对于命令行使用,您可以使用 AT 命令进行安排.

For command-line usage, you can schedule with the AT command.

对于较新的 Microsoft 操作系统版本,Windows Server 2012/Windows 8,请查看 schtasks 命令行实用程序.
如果使用 PowerShell,Windows PowerShell 中的计划任务 Cmdlet 用于编写脚本.

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.

这篇关于什么是 Windows 版本的 cron?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆