自动创建win计划任务

@echo off
set NAME=refrash IE
set TIME=20:01:00
set DAY=MON,TUE,WED,THU,FRI,SAT,SUN
set COMMAND=cscript.exe %~dp0dailybak.vbs

%SystemDrive%
cd %windir%\tasks\
if exist %NAME%.job del %NAME%.job

schtasks /create /tn %NAME% /tr "%COMMAND%" /sc weekly /d %DAY% /st %TIME% /ru system

posted @ 2017-04-08 17:28  火罐儿  阅读(295)  评论(0编辑  收藏  举报