PC Review


Reply
Thread Tools Rate Thread

Combine /a and /m command line switches

 
 
RichardB
Guest
Posts: n/a
 
      13th Feb 2008
Hello,

I'm having trouble combining the /a and /m switches when starting outlook by
command line since installing Outlook 2003 SP3;

What I did before SP3:
outlook.exe /m someone_at_example.com c:\file.txt
This brought up a new message window, pre-addressed and with the specified
attachment

I know that this was undocumented, but at least it worked...

Since SP3 this doesn't work anymore, so I referred to
http://office.microsoft.com/en-us/ou...031101033.aspx

So I tried:
outlook.exe /c ipm.note /m someone_at_example.com
Brings up a new pre-addressed message window

outlook.exe /c ipm.note /a "c:\file.txt"
Brings up a new message windows with the specified file attached

outlook.exe /c ipm.note /m someone_at_example.com /a "c:\file.txt"
Brings up an error message saying "Invalid command line argument specified"


Could anybody please help me to send a pre-addressed mail with an attachment
with Outlook 2003 SP3?

Many thanks in advance,

Richard
 
Reply With Quote
 
 
 
 
RichardB
Guest
Posts: n/a
 
      25th Feb 2008
Anybody who has any input?

"RichardB" wrote:

> Hello,
>
> I'm having trouble combining the /a and /m switches when starting outlook by
> command line since installing Outlook 2003 SP3;
>
> What I did before SP3:
> outlook.exe /m someone_at_example.com c:\file.txt
> This brought up a new message window, pre-addressed and with the specified
> attachment
>
> I know that this was undocumented, but at least it worked...
>
> Since SP3 this doesn't work anymore, so I referred to
> http://office.microsoft.com/en-us/ou...031101033.aspx
>
> So I tried:
> outlook.exe /c ipm.note /m someone_at_example.com
> Brings up a new pre-addressed message window
>
> outlook.exe /c ipm.note /a "c:\file.txt"
> Brings up a new message windows with the specified file attached
>
> outlook.exe /c ipm.note /m someone_at_example.com /a "c:\file.txt"
> Brings up an error message saying "Invalid command line argument specified"
>
>
> Could anybody please help me to send a pre-addressed mail with an attachment
> with Outlook 2003 SP3?
>
> Many thanks in advance,
>
> Richard

 
Reply With Quote
 
Brian Tillman
Guest
Posts: n/a
 
      25th Feb 2008
RichardB <(E-Mail Removed)> wrote:

> I'm having trouble combining the /a and /m switches when starting
> outlook by command line since installing Outlook 2003 SP3;


I do not believe it's possible to combine those command switches. In fact,
Help for the command switches says this about the /m switch: "Only works in
conjunction with the /c command-line parameter."
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
RichardB
Guest
Posts: n/a
 
      25th Feb 2008
Brian,

thanks for your reply. The question in this case is: Does "only" mean
"...with no other parameters than /c..." or "...not without the /c
parameter..."

In fact it doesn't work, but i can't think of a good reason for this
behaviour.

Richard

"Brian Tillman" wrote:

> RichardB <(E-Mail Removed)> wrote:
>
> > I'm having trouble combining the /a and /m switches when starting
> > outlook by command line since installing Outlook 2003 SP3;

>
> I do not believe it's possible to combine those command switches. In fact,
> Help for the command switches says this about the /m switch: "Only works in
> conjunction with the /c command-line parameter."
> --
> Brian Tillman [MVP-Outlook]
>
>

 
Reply With Quote
 
Brian Tillman
Guest
Posts: n/a
 
      26th Feb 2008
RichardB <(E-Mail Removed)> wrote:

> thanks for your reply. The question in this case is: Does "only" mean
> "...with no other parameters than /c..." or "...not without the /c
> parameter..."


It means, to me, "it works only when you also specify /c"

> In fact it doesn't work, but i can't think of a good reason for this
> behaviour.


You'd have to ask Microsoft.
--
Brian Tillman [MVP-Outlook]
 
Reply With Quote
 
Chris
Guest
Posts: n/a
 
      19th Mar 2008
> I know that this was undocumented, but at least it worked...

It's documented. I've been using /a and /m together for over 10 years with Outlook 97, 98, 2000, 2002, XP, 2003 and 2007 to create e-mail from an old ERP system.

A recent MS update for has broken this (our ERP system is unchanged). It's not just Outlook 2003 SP3 because the problem also appeared in our other versions of Outlook.

Any resolution or work-araound? I guess I'll load up a test system and apply patches one at a time to see which one creates this problem, then see if it can be uninstalled (without undue risk to security or stability).

Chris

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine Command-line switches to send an email with rjchaney Microsoft Outlook Discussion 10 25th Mar 2009 02:28 PM
Command line switches =?Utf-8?B?U2ltb24gQ2xlYWw=?= Microsoft Access 4 13th Jan 2006 04:46 PM
Command line switches. Jarryd Microsoft Excel Programming 3 1st Dec 2005 10:06 PM
Command-Line Switches Fitzgerald Windows XP Internet Explorer 1 20th Sep 2003 10:01 AM
Command Line Switches Erik Cominolli Windows XP General 3 13th Sep 2003 12:38 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:24 PM.