
CODE: [Copy to clipboard]添加任务时时间出错,15和: 之间有个空格set tt=%time:~0,2%
set tt1=%time:~3,2%
set tt2=%time:~6,2%
set /a tt2 += 60
if %tt2% GEQ 60 (set /a tt1 += 1&& set /a tt2 = %tt2%-60)
if %tt1% GEQ 60 (set /a tt += 1 && set /a tt1 = %tt1%-60)
if %tt% GEQ 24 (set /a tt -= 24)
set yy=%tt%:%tt1%:%tt2%
at %yy% /interactive cmd
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |