如何通过批处理文件

时间:2017-12-15 10:37:45

标签: batch-file outlook

我正在尝试打开Outlook,通过批处理文件填写邮件的To: Subject: and Body:

这是我的档案:

set compose=/c ipm.note

set subject=some thing
set body=some body
set recipients=/m "recipient@example.com&subject=%subject%&body=%body%"

rem attachment done
set attachment=/a "h.txt"

start "Outlook" "OUTLOOK.EXE" /recycle /profile "GRP" %compose% %recipients% %attachment%

运行此文件时,我收到前景错误"The command line argument is not valid . Verify the switch you are using"

请帮忙

0 个答案:

没有答案