schtasks命令

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

 

posted @ 2018-03-05 23:05  卷珠帘  阅读(4276)  评论(0编辑  收藏  举报