Bat ·

超详细Windows任务计划批处理(bat)命令设置

每1小时运行
schtasks /create /tn "运维天涯-每1小时运行" /tr "%~dp0运行_每1小时.CMD" /sc hourly /mo 1 /st 03:10:00 /sd 2015/07/15 /ru system
每2小时运行
schtasks /create /tn "运维天涯-每2小时运行" /tr "%~dp0运行_每1小时.CMD" /sc hourly /mo 2 /st 03:10:00 /sd 2015/07/15 /ru system

每1天运行
schtasks /create /tn "运维天涯-每1天运行" /tr "%~dp0运行_每1天.CMD" /sc daily /mo 1 /st 03:10:00 /sd 2015/07/14 /ru system
每2天运行
schtasks /create /tn "运维天涯-每2天运行" /tr "%~dp0运行_每1天.CMD" /sc daily /mo 2 /st 03:10:00 /sd 2015/07/14 /ru system

每周一运行
schtasks /create /tn "运维天涯-每周一运行" /tr "%~dp0每周一运行.CMD" /sc weekly /mo 1 /st 03:10:00 /sd 2015/07/14 /ru system
每周二运行
schtasks /create /tn "运维天涯-每二运行" /tr "%~dp0每周二运行.CMD" /sc weekly /mo 1 /d TUE /st 03:23:00 /sd 2015/07/03 /ru system
每周三运行
schtasks /create /tn "运维天涯-每三运行" /tr "%~dp0每周三运行.CMD" /sc weekly /mo 1 /d WED /st 03:23:00 /sd 2015/07/03 /ru system
每周四运行
schtasks /create /tn "运维天涯-每四运行" /tr "%~dp0每周四运行.CMD" /sc weekly /mo 1 /d THU /st 03:23:00 /sd 2015/07/03 /ru system
每周五运行
schtasks /create /tn "运维天涯-每五运行" /tr "%~dp0每周五运行.CMD" /sc weekly /mo 1 /d FRI /st 03:23:00 /sd 2015/07/03 /ru system
每周六运行
schtasks /create /tn "运维天涯-每六运行" /tr "%~dp0每周六运行.CMD" /sc weekly /mo 1 /d SAT /st 03:23:00 /sd 2015/07/03 /ru system
每周日运行
schtasks /create /tn "运维天涯-每日运行" /tr "%~dp0每周日运行.CMD" /sc weekly /mo 1 /d SUN /st 03:23:00 /sd 2015/07/03 /ru system

运维天涯-每月第1周二运行
schtasks /create /tn "运维天涯-每月第1周二运行" /tr "%~dp0运行_每月第1周二.CMD" /sc monthly /mo FIRST /d TUE /st 03:23:00 /sd 2015/07/03 /ru system
运维天涯-每月第2周二运行
schtasks /create /tn "运维天涯-每月第2周二运行" /tr "%~dp0运行_每月第2周二.CMD" /sc monthly /mo SECOND /d TUE /st 03:23:00 /sd 2015/07/03 /ru system
运维天涯-每月第3周二运行
schtasks /create /tn "运维天涯-每月第3周二运行" /tr "%~dp0运行_每月第3周二.CMD" /sc monthly /mo THIRD /d TUE /st 03:23:00 /sd 2015/07/03 /ru system
运维天涯-每月第4周二运行
schtasks /create /tn "运维天涯-每月第4周二运行" /tr "%~dp0运行_每月第4周二.CMD" /sc monthly /mo FOURTH /d TUE /st 03:23:00 /sd 2015/07/03 /ru system

schtasks /create /tn "运维天涯-每月第5周月底周二运行" /tr "%~dp0运行_每月第5周二.CMD" /sc monthly /mo LAST /d TUE /st 03:23:00 /sd 2015/07/03 /ru system

评论已关闭