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-09 14:19
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] In the example below, how do I assign to multiples of 10? View 1,963 Replies 16
Floor 16 Posted 2008-08-22 13:15 ·  中国 山西 太原 迎泽区 联通
初级用户
Credits 28
Posts 14
Joined 2008-02-29 12:36
18-year member
UID 111702
Gender Male
Status Offline
Thanks to the friend in post #16
Yes, I saved it. After running it, what is displayed is 1 through 31; what I want is different output at 10, 20, and 30.
Floor 17 Posted 2008-08-23 00:53 ·  中国 山西 太原 迎泽区 联通
初级用户
Credits 28
Posts 14
Joined 2008-02-29 12:36
18-year member
UID 111702
Gender Male
Status Offline
Thanks to shq f and moderator lxmxn!

As soon as I saw your replies, I immediately downloaded and tested it. In order to see things more intuitively during testing, I deleted the @echo off& setlocal EnableDelayedExpansion statement, so of course the test result was not correct.

Just now I came back and saw your replies again. After pasting it in complete form and testing, it worked correctly. Only now did I understand the function of the setlocal EnableDelayedExpansion statement, so I came especially to express my thanks!
Forum Jump: