简体   繁体   English

如果计划任务具有重复触发器,则它不存在

[英]Scheduled Task Does Not Exist IF It Has a Repeat Trigger

Since yesterday my task scheduler has been causing some issues here that I was hoping to find some assistance with if possible.从昨天开始,我的任务调度程序在这里引起了一些问题,如果可能的话,我希望能找到一些帮助。 I have a task "TASK" set to run daily each morning and then repeat every 30minutes with the action of launching a batch script from a directory in the C: drive.我有一个任务“TASK”设置为每天早上运行,然后每 30 分钟重复一次,操作是从 C: 驱动器中的目录启动批处理脚本。 This script works appropriately when run on its own.该脚本在单独运行时可以正常工作。 When I create a task for the script it will run, unless it is set to have an "After triggered, repeat every X."当我为脚本创建任务时,它将运行,除非它设置为“触发后,重复每个 X”。 In this case it gives the error message of: "An error has occurred for task TASK. Error message: The selected task "{0}" no longer exists. To see the current tasks, click Refresh.在这种情况下,它会给出错误消息:“任务 TASK 发生错误。错误消息:所选任务“{0}”不再存在。要查看当前任务,请单击刷新。

I have attempted wiping all tasks from task scheduler and recreating them from scratch, I have wiped the registry of tasks, I have exported and reimported tasks.我尝试从任务调度程序中擦除所有任务并从头开始重新创建它们,我已经擦除了任务注册表,我已经导出并重新导入了任务。 The issue only occurs when a task is set to repeat after trigger.仅当将任务设置为触发后重复时才会出现此问题。

Got it myself.我自己拿到了。 Came up with this error due to the fact that the original start date was set to before my attempt at manually running the tasks to test them.之所以出现此错误,是因为原始开始日期设置为我尝试手动运行任务以测试它们之前。 Strange.奇怪的。 Solution: Set next start date to the future.解决方案:将下一个开始日期设置为未来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM