中国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-11-11 12:30
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS批处理 & 脚本技术(批处理室) » Can one echo output multiple lines?
Printable Version  4,890 / 18
Floor16 suntb Posted 2008-01-27 21:21
高级用户 Posts 277 Credits 581
Today I found that using ^ with echo is really useful. Let's learn new usages.
Floor17 f319 Posted 2009-12-20 13:55
新手上路 Posts 9 Credits 14
@echo 1^
2^
3^
>test.txt

You can take a look at the result in test.txt after running. What is seen when opened with Notepad is different from that opened with Edit. It seems that Notepad handles line breaks differently from other editors.
Floor18 radem Posted 2009-12-21 21:35
高级用户 Posts 383 Credits 691
Another grave digger
There really is a treasure
Floor19 keen Posted 2009-12-22 23:36
初级用户 Posts 29 Credits 58
test.bat:


Use in CMD:
test | more >temp.txt
Prev  1 2
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023