加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Windows > 正文

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

发布时间:2020-12-13 23:34:51 所属栏目:Windows 来源:网络整理
导读:我在编写脚本以自动在 Windows中创建计划任务时遇到问题. 经过大量谷歌搜索,我无法推断命令行实用程序SCHTASKS.EXE中的哪些参数控制设置“如果它运行了几个小时就停止任务”. 你最好的可能是/ DU开关. /DU duration A value that specifies the duration to
我在编写脚本以自动在 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中没有这些信息超出了我的范围.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读