Windows 任务计划程序 - 仅在时间窗口内运行 [英] Windows Task Scheduler - Run only during window of time

查看:38
本文介绍了Windows 任务计划程序 - 仅在时间窗口内运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Windows 调度程序中设置了一个任务(在 Win Server 2008 上).它工作得很好,但在高峰时段(当盒子被用于其他事情时)会给系统带来负担.我目前每 15 分钟运行一次作业.可以任务Sch.设置为每 15 分钟运行一次,但仅在特定时间窗口内运行.所以我可以将它设置为每 15 分钟运行一次,但只能在下午 5 点到凌晨 5 点运行——而不是从早上 5 点到下午 5 点运行?

I have a task already set up in the Windows Scheduler (on Win Server 2008). It works great but it can put a burden on the system during peak hours (when the box is being used for other things). I currently run the job every 15 minutes. Can Task Sch. be setup to run every 15 minutes but only during a certain window of time. So I could set it up to run every 15 min, but only from 5pm to 5am -- and not run at all from 5am to 5pm?

推荐答案

设置每天下午 5 点开始的时间表.在高级"对话框中,单击重复任务",然后指定 Every=15 分钟,直到:Time=5am.

Set a daily schedule starting at 5pm. In the Advanced dialog, click Repeat task, then specify Every=15 minutes, Until:Time=5am.

以上说明适用于 Windows 2003 Server 或 XP.如果 Windows Server 2008 与 Windows 7 类似,那么您可以通过触发器"选项卡执行相同的操作.设置每日触发器,开始=5pm,重复任务每=15 分钟,持续时间=12 小时.您不需要坚持预先定义的时间 - 您可以在这些字段中输入您想要的任何值.

The above instructions are for Windows 2003 Server or XP. If Windows Server 2008 is like Windows 7, then you can do the same thing through the Triggers tab. Set a daily trigger, Start=5pm, Repeat Task Every=15 minutes, For a duration of=12 hours. You don't need to stick with the pre-defined times - you can type into these fields any value you wish.

这篇关于Windows 任务计划程序 - 仅在时间窗口内运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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