View Single Post
  #1  
Old March 17th 06, 05:21 PM posted to microsoft.public.outlook
jb
external usenet poster
 
Posts: 1
Default Outlook 2003 Command Line Switches

Hello,

I was trying to use some command line switches when starting Outlook to
create a new message and I received an error when combining a few switches.

This worked in opening a new message with an attachment:

"C:\Program Files\Microsoft Office\Office11\Outlook.Exe" /c IPM.Note /a
"Foo.Pdf" /NoPollMail

This worked in opening a new mail message with the TO name filled in:

"C:\Program Files\Microsoft Office\Office11\Outlook.Exe" /c IPM.Note /m
/NoPollMail

However, when I tried to combine the /a and /m, I received an error about
Command Line Argument is not Valid.

"C:\Program Files\Microsoft Office\Office11\Outlook.Exe" /c IPM.Note /m
/a "Foo.PDF" /NoPollMail

I looked at the help and I think these two are permitted, but it does not
work. I tried switching the order of the switches and removing the
NoPollMail, but nothing worked. Any ideas?

Also, is there a way to get a default subject put in as well as some default
text in the message, or do I have to go to scripting for that to happen?

Thanks for help.

John


Ads