Batch Files - Carriage Return

August 17, 2010 at 10:51:10
Specs: Windows 7
I'm trying to write the body of an email into a vaiable in my batch file so I can later on use it to send an email via msdb.dbo.sp_send_dbmail.

Is there a way in which I can put a CR and/or LF within the text that I'm assigning to a variable?

See More: Batch Files - Carriage Return

Report •

August 18, 2010 at 06:08:11
I think the short answer is no.

Because a variable is a string ending at CRLF.

You could assign each line to a var and use those.

NOTE: I dunno dbmail.

Helping others achieve escape felicity


Report •
Related Solutions

Ask Question