tags:

views:

185

answers:

3

If so How?

Yes, batch files are lame, but I cannot use powershell, and I don't feel like writing a real app to do this simple task....

edit

What i want is somthing along the lines of

set var="this is a 
multi 
line 
string "
+4  A: 

Is that ok?

@echo off
set var=kur
set var2=kur2
echo var is = "%var%" and var2 is = %var2%

edit
is that what you mean ?

@echo off
set nl=^& echo.
echo this%nl%is%nl%multiline%nl%string
T1000
Works! --------
Andreas Rejbrand
Thanks perfect.
Byron Whitlock
+1 Wow ... how did you guess that this was what he intended to do??
belisarius
+1. Nice. A batch trick I don't know; those are getting rare.
Joey
+2  A: 
Hypnos
+1  A: 

Do DOS Batch files support multiline variables:

no

brock hamper