I have a batch script containing multiple variables, and all the values of these variables I want to add to a new variable that will be used in an email body. Issue is that all my values write to a single line, I want each variable to be on its own line:
set EmailText=%var1% %var2% %var3% %var4%
The EmailText value is all on one line. I want the values of var1, var2 var3 and var4 to all be on its own line, which will load into an email application.
I tried using the ^ character, eg %var1%^%var2% but does not work.
using echo you can do it using ^ but I do not want to echo this, I want to store all the strings, each on its own line, in another variable that is used in an email application
Thanks