码迷,mamicode.com
首页 > 其他好文 > 详细

schtasks命令

时间:2018-03-06 00:58:53      阅读:411      评论:0      收藏:0      [点我收藏+]

标签:body   span   准备   定时执行   命令   style   定时   test   creat   

1.创建任务

 在每天的22.44定时执行一次。

schtasks /create /tn "test3" /tr "F:\test.bat" /sc daily /st 22:44

 在特定时间运行一次。

schtasks /create /tn "test3" /tr "F:\test.bat" /sc once /st 23:03 /sd 2018/03/05

2.运行一次任务

 创建任务后,立即运行一次。

schtasks /run /tn test3

3.删除任务

 任务不准备用时,删除任务。

schtasks /delete /tn test3

 

schtasks命令

标签:body   span   准备   定时执行   命令   style   定时   test   creat   

原文地址:https://www.cnblogs.com/littlepear/p/8511923.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!