Windows 中的 Cron
我正在使用 Windows,我需要在其中安排一个 php 任务。任何人都可以通过解释如何在这里使用 cron 来帮助我解决这个问题吗?
i am using Windows and i need to schedule a php task in this. Can anyone help me on this by explaining how to use cron here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
cron 是一个 Unix 实用程序(尽管您可以获得它的 Windows 端口)。但是,您应该尝试使用 Windows Scheduler。
cron is a Unix utility (although you can get a Windows port of it). However, you should try using Windows Scheduler instead.
使用 Windows 任务计划程序 - http://support.microsoft.com/kb/308569
或者您可以在 cygwin 中尝试 cron,请参阅如何在 Windows 上的 Cygwin 中运行 crontab?
Use Windows Task Scheduler - http://support.microsoft.com/kb/308569
Or you can try cron in cygwin, see How do you run a crontab in Cygwin on Windows?
Cron 未内置于 Windows 中。但是,您可以使用 schtasks 命令,您可以使用该命令添加/从计划中删除任务。
另请查看Windows 任务计划程序。
Cron is not built into Windows. However, you can use the schtasks command which you can use to add/remove tasks from the schedule.
Also take a look at Windows Task Scheduler.