使用 Windows 任务计划程序每 x 分钟运行一次任务

编程入门 行业动态 更新时间:2024-10-28 04:15:25
本文介绍了使用 Windows 任务计划程序每 x 分钟运行一次任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我试图让 Windows 任务计划程序每 10 分钟左右运行一次特定的 .exe,但这些选项只允许每天执行一次.

I'm trying to get Windows Task Scheduler to run a particular .exe every 10 minutes or so, but the options only allow for once a day execution.

有没有办法让它每 10 或 20 分钟运行一次 .exe?

Is there a way I can get it to run a .exe every 10 or 20 minutes?

推荐答案

必须分两步配置任务.

首先,您创建一个简单的任务,每天从 0:00 开始.然后,您进入 Advanced...(或类似的,取决于您使用的操作系统)并选择 Repeat every X minutes 选项 24 小时.

First you create a simple task that start at 0:00, every day. Then, you go in Advanced... (or similar depending on the operating system you are on) and select the Repeat every X minutes option for 24 hours.

这里的关键是找到高级属性.如果您使用 XP 向导,它只会在您创建任务后提供启动高级对话框.

The key here is to find the advanced properties. If you are using the XP wizard, it will only offer you to launch the advanced dialog once you created the task.

在更新版本的 Windows 上(我认为是 7+):

On more recent versions of Windows (7+ I think?):

  • 双击任务,将显示一个属性窗口.
  • 点击触发器标签.
  • 双击触发器详细信息,将显示编辑触发器"窗口.
  • 在Advanced settings面板下,勾选Repeat task every xxx 分钟,并根据需要设置无限期.
  • 最后,点击确定.
  • Double click the task and a property window will show up.
  • Click the Triggers tab.
  • Double click the trigger details and the Edit Trigger window will show up.
  • Under Advanced settings panel, tick Repeat task every xxx minutes, and set Indefinitely if you need.
  • Finally, click ok.
  • 更多推荐

    使用 Windows 任务计划程序每 x 分钟运行一次任务

    本文发布于:2023-11-24 05:51:36,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1624159.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:计划   程序   Windows

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!