CODE: [Copy to clipboard]
@echo off
echo 当前系统时间:%time:~0,5%
for /f "tokens=1,2 delims=:." %%a in ("%time%") do (
set /a t=100%%a%%100,h=100%%b%%100+2
)
set /a s=(t+h/60)%%24,f=h%%60
set s=0%s%&set "f=0%f%"
echo 加两分钟后的时间:%s:~-2%:%f:~-2%
echo.&pause
[CODE: [Copy to clipboard]
::@echo off
set /a step=1
for /f "tokens=1,2 delims=:." %%a in ("%time%") do (
set /a t=100%%a%%100, h=100%%b%%100+%step%
)
set /a s=(t+h/60)%%24,f=h%%60
set s=0%s%&set "f=0%f%"
:set /a rq=%date:~0,4%%date:~5,2%%date:~8,2% >nul 2>nul
set /a nian=%date:~0,4%,yue=%date:~5,2%,ri=%date:~8,2%
echo %nian%年%yue%月%ri%日 %s:~-2%:%f:~-2% >>C:\test\test.txt
::start notepad.exe C:\test\test.txt
at /d /y
at %s:~-2%:%f:~-2% /interactive C:\test\new.vbs
::pause
::exit
new.vbs