启动Outlook以通过Outlook的命令行开关撰写包含主题和附件的邮件 [英] Launch Outlook to compose a message with subject and attachment by Outlook's command line switches
问题描述
以下Outlook的命令适用于Outlook 2010:
outlook.exe / c ipm.note / m& subject = abc/ ac:\attach.txt
Outlook 2007和2003.奇怪的是以下命令在Outlook 2007和2003中工作良好:
outlook.exe / c ipm.note / m& subject = abc
outlook.exe / c ipm.note / ac:\attach.txt
如何使用一个命令行开关启动Outlook来编写Outlook 2010/2007/2003的主题和附件的邮件?
解决方案到目前为止,我发现与Outlook 2007是为了实现这一点,你必须意识到
/ a
表示/ c IPM.note
。
所以使用
outlook.exe / aFileName/ maddresses& cc =& subject =& body =
工作很好(让我永远想出这一点,因为网上的每个人似乎都坚持你必须使用
/ c
当执行/ m
但不考虑/ a
会自动执行此操作。
此外,我注意到使用
%20
在需要放置空格时不完全正确,%2
(%20
没有0
。否则,你会在所有空格后面加上一串0
'。非常奇怪。The following Outlook's command works well with Outlook 2010:
outlook.exe /c ipm.note /m "&subject=abc" /a "c:\attach.txt"
But it does not work with Outlook 2007 and 2003. The strange are following commands work well with Outlook 2007 and 2003:
outlook.exe /c ipm.note /m "&subject=abc" outlook.exe /c ipm.note /a "c:\attach.txt"
How do I use one command line switch to launch Outlook to compose message with both subject and attachment for Outlook 2010/2007/2003?
解决方案So far from what I've discovered with Outlook 2007 is that in order to achieve this you have to realize that
/a
implies/c IPM.note
.So using
outlook.exe /a "FileName" /m "addresses&cc=&subject=&body="
Works just fine (took me forever to figure this out cause everyone on the web appears to insist that you must use
/c
when doing/m
but not taking into account that/a
does this for you automatically.Also, I've noticed that using
%20
isn't exactly correct when needing to put spaces, instead%2
(%20
without the0
) is doing the trick there. Otherwise you'll end up with a bunch of0
's after all the spaces, very strange indeed.这篇关于启动Outlook以通过Outlook的命令行开关撰写包含主题和附件的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!