echo (1&2&3)>test.txt
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!
@echo off
:start_echo
set start_echo=%1
if not defined start_echo goto end
echo %1
shift
goto start_echo
:endE:\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>
| Rater | Score | Time |
|---|---|---|
| everest79 | +15 | 2007-11-26 20:50 |
| junyee | +1 | 2007-12-01 19:04 |
| 429499381 | +4 | 2008-01-16 16:35 |
| huahua0919 | +4 | 2008-01-16 17:14 |
| plp626 | +4 | 2008-02-03 10:20 |
Originally posted by kidzgy at 2008-1-15 18:54:
Moderator, if there are multiple lines and spaces are needed in the middle, what should be done?
B:\PERL>type xecho.bat
@echo one^
^
^
the end^
goodbye
B:\PERL>xecho.bat
one
the end goodbye
B:\PERL>