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-07-11 15:54
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Common Discussion]Some Pitfalls in Reading Text Content with the for Statement View 5,385 Replies 17
Floor 16 Posted 2008-01-11 14:51 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 17 Posted 2008-01-13 10:48 ·  中国 四川 成都 移动
新手上路
Credits 16
Posts 7
Joined 2007-04-05 04:03
19-year member
UID 83998
Gender Male
Status Offline
The traps of FOR are really annoying. I made a script and just fell into the trap, which made me look for a long time... Thanks to the building owner for providing the method
Floor 18 Posted 2010-06-07 15:13 ·  中国 上海 徐汇区 电信
新手上路
Credits 16
Posts 17
Joined 2008-04-08 14:54
18-year member
UID 115249
Gender Male
Status Offline
for /f "eol=" %i in (test.txt) do echo %i
Forum Jump: