dos定时运行,dos timer

mode con:lines=6mode con:cols=67@echo off & setLocal EnableDelayedExpansion:startclsif "%1"=="" (@set dd=%date:~6,4%%date:~0,2%%date:~3,2%) else @set dd=%1if "%2"=="" (@set tt=202502) else @set tt=%2@echo Job %3 will run at %dd:~0,4%-%dd:~4,2%-%dd:~6,2% on %tt:~0,2%:%tt:~2,2%:%tt:~4,2%@echo Times now: %date:~6,4%-%date:~0,2%-%date:~3,2% %time:~0,2%:%time:~3,2%:%time:~6,2%@set d= %date:~6,4%%date:~0,2%%date:~3,2%@set t=%time:~0,2%%time:~3,2%%time:~6,2%if %d% geq %dd% goto s1goto exit:s1if %t% geq %tt% goto s2goto exit:s2ECHO START TO RUN %3 …TIMEOUT 10if "%3"=="" ( @echo ———— %TIME% DONE) else @call %3goto out:exittimeout 3 /NOBREAKgoto start:outpauseexit

,那么,不如我们礼貌地保持相对距离,不至于太冷,不至于太痛。

dos定时运行,dos timer

相关文章:

你感兴趣的文章:

标签云: