3

这是我的批次的一部分:

start "" "C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE" /c ipm.note /m "email address&cc=email address 2;email address 3&subject=Very Important Alert&body=Line 1 of alert\nLine 2 of alert"

这只是将文字\n插入正文中。如何让它插入实际的换行符?

4

2 回答 2

1

尝试这个:

"...&body=Line 1 of alert\r\nLine 2 of alert"

或这个:

"...&body=Line 1 of alert%%0D%%0ALine 2 of alert"
于 2013-04-23T05:30:00.100 回答
0

以下对我有用;但是,我必须单击send按钮才能完成该过程。

start "" "C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE" /c ipm.note /m "FromEmailAddress&cc=EmailAddress1;EmailAddress1&subject=Very Important Alert&body=Line 1 of alert%%0D%%0ALine 2 of alert"
于 2013-10-18T16:15:01.737 回答