微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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中没有这些信息超出了我的范围.

原文地址:https://www.jb51.cc/windows/366923.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐