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 12:38
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to append data to notepad data View 1,760 Replies 2
Original Poster Posted 2005-05-25 00:00 ·  中国 湖北 黄石 移动
初级用户
Credits 137
Posts 12
Joined 2005-05-25 00:00
21-year member
UID 39045
Gender Male
Status Offline
How to append data in the content of Notepad

I used the command line (for /l %i in (00000000,1,99999999) do @echo %i > dict.txt) to create a file

After execution, the content of dict.txt is:
00000000
00000001
...........
99999999
Now I want to add the same data in front of each line of data, such as 130, or 139 and so on, and then get

Such as? 13000000000

13000000001

13099999999

Dear "great immortals", how can I operate in batches?
Floor 2 Posted 2005-05-29 00:00 ·  中国 山西 太原 中移铁通
元老会员
★★★★
Batchinger
Credits 4,432
Posts 1,512
Joined 2002-10-18 00:00
23-year member
UID 19
Gender Male
Status Offline
Re sncffb
How do you get numbers with a prefix of 0 like 00000000? In my test, I can only get 0, 1,...10,...100, so I used the recursive binary search method in another reply. Among them, it mentions how to add a prefix to a number.
※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得!
Floor 3 Posted 2005-05-29 00:00 ·  中国 福建 三明 电信
中级用户
★★
Credits 316
Posts 83
Joined 2005-03-01 00:00
21-year member
UID 36626
Gender Male
Status Offline
What Willsort said is correct. You can't directly get 01 02 03 04...
Forum Jump: