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-06 01:06
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Counter problem View 700 Replies 2
Original Poster Posted 2007-10-07 22:29 ·  中国 上海 静安区 电信
中级用户
★★
Credits 400
Posts 211
Joined 2007-09-30 18:02
18-year member
UID 98650
Gender Male
Status Offline
Why doesn't it ECHO the count?

set num=1
for ... do(
set /a num=%num%+1
echo %num%
)
Floor 2 Posted 2007-10-07 22:57 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
20-year member
UID 59080
Status Offline
Search for delayed expansion.
Floor 3 Posted 2007-10-08 17:35 ·  中国 上海 联通
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
Forum Jump: