Is there a way to echo a lot of formated text to a new file. I know how to echo a line at a time like
echo this is some stuff > stuff.txt
and to append that same file
echo this is some stuff >> stuff.txt
But is there a way to echo a lot of fomatted text from like echo everything from here to here.
Or
Is there an escape character that can be interpted as a new line like say:
echo this is the first line *some character here* this is the second line > stuff.txt
I know the carrot ^ can put in some special characters so I was thinking that there may be another character like that for new line.
I would use copy to copy to a new file but then I wouldn't get the variables I need.
Basically I am writing a script that will pass a bunch of code to a new file only with my inputed variables like so
Code:
set site=somesite
set user= someuser
set ip=127.0.0.1
set /P birth="What is your date of birth?" %=%
set /P MMN="What is your mothers maiden name?" %=%
===== Here is a buch of formatted text possibly 50 lines or more ===
echo Your site is %somesite% (NEW LINE) your name is %user% (NEW LINE) your IP is %ip% (NEW LINE) lots of other stuff using those variables. > stuff.txt
=== End of formatted text ====
I'm just looking for an alternative for having to write an echo line for every line.
IDEAS?