中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-06 01:59
48,039 topics / 350,124 posts / today 2 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Counter problem
Printable Version  701 / 2
Floor1 uiopuiop Posted 2007-10-07 22:29
中级用户 Posts 211 Credits 400
Why doesn't it ECHO the count?

set num=1
for ... do(
set /a num=%num%+1
echo %num%
)
Floor2 lxmxn Posted 2007-10-07 22:57
版主 Posts 4,938 Credits 11,386
Search for delayed expansion.
Floor3 HAT Posted 2007-10-08 17:35
版主 Posts 5,017 Credits 9,023
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023