@echo off &Setlocal EnableDelayedExpansion
for /f "tokens=1,2* delims=:" %%a in ("%time%") do (
set /A tm=%%b+1 ::将1改为你需要的分钟
set /A tm1=%%a+1 ::这个是小时不需要动,当然你要3小时后启动,就改为3
set /A tm=!tm!%%60
if !tm! GEQ "60" goto :_tm
if !tm1! GEQ "24" goto :_tm
set tm2=%%a:!tm!
at !tm2! c:\delcopyrar.bat
)
goto :eof
:_tm
set /A tm1=!tm1!%%24
set tm2=!tm1!:!tm!
at !tm2! c:\delcopyrar.bat
exit
[ Last edited by qingfushuan on 2007-6-4 at 06:46 PM ]作者: HAT 时间: 2007-6-4 20:19 //我要 设定 在今天下午 6:05 运行我的 e:\111\5.bat 要如何设置呢?