China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 10:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Help me take a look! Where is the syntax error? View 1,418 Replies 0
Original Poster Posted 2003-09-25 00:00 ·  中国 上海 奉贤区 电信
初级用户
Credits 103
Posts 1
Joined 2003-09-25 00:00
22-year member
UID 10356
Gender Male
Status Offline
echo %host% current time is %hh%:%mm%
set /a mm=%mm%+1
if /i %mm% geq 60 set /a mm=0 & set /a hh=%hh%+1
if /i %hh% geq 24 set /a hh=0
set tm=%hh%:%mm%
Forum Jump: