windows – 哪个SCHTASKS参数控制设置“如果运行几个小时就停止任务”?

我在编写脚本以自动在 Windows中创建计划任务时遇到问题.

经过大量谷歌搜索,我无法推断命令行实用程序SCHTASKS.EXE中的哪些参数控制设置“如果它运行了几个小时就停止任务”.

你最好的可能是/ DU开关.

/DU duration

A value that specifies the duration to
run the task. The time format is HH:mm
(24-hour time). For example,14:50
specifies 2:50PM. This is not
applicable with /ET and for the
following schedule types: ONSTART,
ONLOGON,ONIDLE,and ONEVENT. For /V1
tasks (Task Scheduler 1.0 tasks),if
/RI is specified,then the duration
default is one hour.

Windows XP: This option is not
available.

Quoted from MSDN.为什么TechNet Library page for schtasks中没有这些信息超出了我的范围.

相关文章

文章浏览阅读2.2k次,点赞6次,收藏20次。在我们平时办公工作...
文章浏览阅读1k次。解决 Windows make command not found 和...
文章浏览阅读3.2k次,点赞2次,收藏6次。2、鼠标依次点击“计...
文章浏览阅读1.3w次。蓝光版属于高清版的一种。BD英文全名是...
文章浏览阅读974次,点赞7次,收藏8次。提供了更强大的功能,...
文章浏览阅读1.4w次,点赞5次,收藏22次。如果使用iterator的...