Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need a carriage return in a net send statement..

Status
Not open for further replies.

SteveMe

MIS
Aug 30, 2002
83
US
Does anyone know how to get a carriage return in a net send message? Please advise. Thanks

Steve
 
I haven’t tried this with net send but can you concatenate char(13) into your message string.
So,

set @message = ‘Hello‘ + char(13) + ‘Steve’
 
Unfortunately that doesn't work.

Here's my syntax

EXEC master..xp_cmdshell 'net send userX Line 1 Line 2'
 
I dont think you can have a return in a dos command statement
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top