Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 9th, 2007, 11:43 AM
Ronack Ronack is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 299 Ronack User rank is Corporal (100 - 500 Reputation Level)Ronack User rank is Corporal (100 - 500 Reputation Level)Ronack User rank is Corporal (100 - 500 Reputation Level)Ronack User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 20 h 34 m 41 sec
Reputation Power: 5
Echo formated text in a batch file

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?

Last edited by Ronack : December 9th, 2007 at 11:50 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Echo formated text in a batch file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway