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-06-26 22:33
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How do I write multiple lines of text to a file in a batch file? View 593 Replies 2
Original Poster Posted 2003-11-29 00:00 ·  中国 江苏 南通 电信
初级用户
Credits 187
Posts 19
Joined 2003-06-19 00:00
23-year member
UID 5536
Gender Male
Status Offline
Right now I only know how to write one line of text, using echo the text to be entered > a.txt
If I want to write multiple lines of text, how should I do it?
Floor 2 Posted 2003-12-01 00:00 ·  中国 河南 安阳 联通
银牌会员
★★★
Credits 1,186
Posts 334
Joined 2003-05-30 00:00
23-year member
UID 2626
Gender Male
Status Offline
Use the same method, just add another >
echo the text to be entered > >a.txt
Floor 3 Posted 2003-12-02 00:00 ·  中国 江苏 南通 电信
初级用户
Credits 187
Posts 19
Joined 2003-06-19 00:00
23-year member
UID 5536
Gender Male
Status Offline
Thanks, Dragon King, the problem is solved
Forum Jump: