标题: 如何用echo加()实现多行输出?
[打印本页]
作者: bosinl2004
时间: 2007-12-21 19:45
标题: 如何用echo加()实现多行输出?
记得以前有看到过类似这样的写法,(以下代码是错的)
echo ( 4t3463461
111111
22222
33333
55555 ) >1.txt
总之是echo+()来实现的,现在忘了,请哪位高手给个正确的写法?
作者: knoppix7
时间: 2007-12-21 21:12
echo (123123^
12312312^
123123123^
123123123^
123123123)>1.txt
这样?
作者: bosinl2004
时间: 2007-12-21 21:55
谢谢,还是你这强!下面是另一个地方版主回的代码。
(
echo 12344
echo 3452352
echo 43534534
echo 4353454555
) >1.txt
作者: HAT
时间: 2007-12-22 00:11
knoppix7 兄:
你的代码自己测试时通过了么?测试环境是?
作者: knoppix7
时间: 2007-12-22 10:10
测试了。。。。就是里面的回车字符(大黑框)被处理了.........
作者: everest79
时间: 2007-12-22 10:31
Quote: |
Originally posted by lxmxn at 2007-11-26 12:19 PM:
E:\Cmd>type xecho.bat
E:\Cmd>type xecho.bat
@echo this is the first line for echo^
this is the second line^
the end
E:\Cmd>xecho.bat
this is the first line for echo
this is the second line
the end
E:\Cmd>
|
|
http://www.cn-dos.net/forum/view ... =%E8%BE%93%E5%87%BA