A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook 2003 Command Line Switches



 
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old March 17th 06, 06:41 PM posted to microsoft.public.outlook
Brian Tillman
external usenet poster
 
Posts: 17,452
Default Outlook 2003 Command Line Switches

jb wrote:

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.

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


Correct. The /a and /m switched are mutually exclusive. If you look at
your Help again in the description of the /m switch it says, "Only works in
conjunction with the /c command-line switch." In other words, if you use
/m, the only other switch you can use on the same command line is /c.

Conceivably you can use a mailto shortcut to click on in a document or a
draft item. See http://www.ianr.unl.edu/internet/mailto.html
--
Brian Tillman

  #3  
Old March 17th 06, 06:49 PM posted to microsoft.public.outlook
Brian Tillman
external usenet poster
 
Posts: 17,452
Default Outlook 2003 Command Line Switches

jb wrote:

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.


Well, either Outlook has it wrong or the web site I referenced has it wrong.
Outlook does not recognize the "?&xxx" mailto extensions. If you leave off
the "&", then they work. For example, the web site shows:

MailTo with message already started in Body
a ?&body=I am having trouble finding
information on "

Outlook will obey it if you write it as:

a ?body=I am having trouble finding information
on"
--
Brian Tillman

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The News command is not listed in the go catagory in Outlook 2003 Thomas Squicquero Outlook - General Queries 1 March 8th 06 05:58 PM
Outlook 2003 Line 1344 script error [email protected] Outlook Express 2 February 9th 06 11:02 AM
Outlook Shutdown - command line Pete Outlook - Installation 1 February 7th 06 08:28 PM
Outlook command-line switches Brad Nowlin Outlook - General Queries 1 January 27th 06 05:00 PM
How do I launch outlook with multi-attachments using command line. ktn Outlook and VBA 1 January 18th 06 04:19 PM


All times are GMT +1. The time now is 04:01 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.