<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Command Line Parameter Changes in Outlook</title><link>http://blogs.msdn.com/rgregg/archive/2007/12/03/command-line-parameter-changes-in-outlook.aspx</link><description>As part of SP3 for Outlook 2003 (and included in SP1 for Outlook 2007) we&amp;#8217;ve made a change to the way command line parameters are parsed to ensure Outlook is always doing the right thing.&amp;#160; As part of this change, a less common way of attaching</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; Command Line Parameter Changes in Outlook</title><link>http://blogs.msdn.com/rgregg/archive/2007/12/03/command-line-parameter-changes-in-outlook.aspx#6646808</link><pubDate>Mon, 03 Dec 2007 21:23:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6646808</guid><dc:creator>MSDN Blog Postings  » Command Line Parameter Changes in Outlook</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2007/12/03/command-line-parameter-changes-in-outlook/"&gt;http://msdnrss.thecoderblogs.com/2007/12/03/command-line-parameter-changes-in-outlook/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Command Line Parameter Changes in Outlook</title><link>http://blogs.msdn.com/rgregg/archive/2007/12/03/command-line-parameter-changes-in-outlook.aspx#7039113</link><pubDate>Wed, 09 Jan 2008 13:25:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7039113</guid><dc:creator>Simon Morrish</dc:creator><description>&lt;p&gt;Hi Ryan&lt;/p&gt;
&lt;p&gt;I have a problem with Outlook command lines since SP3.&lt;/p&gt;
&lt;p&gt;We use shortcuts to open the different folders. Prior to SP3, command lines like the following worked OK:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE&amp;quot; /folder outlook:calendar /recycle&lt;/p&gt;
&lt;p&gt;This now gives the &amp;quot;The command line argument is not valid. Verify the switch you are using&amp;quot; error. I've added the /select switch as follows:&lt;/p&gt;
&lt;p&gt;&amp;quot;C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE&amp;quot; /folder /select outlook:calendar /recycle&lt;/p&gt;
&lt;p&gt;...but still get the same error. I've found I can use /folder and /recycle on their own, or /select on its own, but not all three together. &lt;/p&gt;
&lt;p&gt;This is no good for me. I want shortcuts to open the existing outlook instance to a specific folder. How can I now achieve this?&lt;/p&gt;
&lt;p&gt;yours,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;
</description></item><item><title>re: Command Line Parameter Changes in Outlook</title><link>http://blogs.msdn.com/rgregg/archive/2007/12/03/command-line-parameter-changes-in-outlook.aspx#7545962</link><pubDate>Fri, 08 Feb 2008 23:38:13 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7545962</guid><dc:creator>Bob</dc:creator><description>&lt;p&gt;Hi Ryan,&lt;/p&gt;
&lt;p&gt;I’m writing an application that is a library of PDF documents. The UI has buttons that allow the user to open an Outlook message with the selected PDF(s) automatically attached. It works fine for single attachments but I can’t find a way to programmatically open one email message with multiple attachments.&lt;/p&gt;
&lt;p&gt;The command line I’m using is: &amp;lt;full path to outlook&amp;gt; /c ipm.note /m “?subject=Requsted Forms from Human Resources” &amp;lt;full path to PDF&amp;gt;&lt;/p&gt;
&lt;p&gt;BTW: As far as I can tell /m and /a are mutually exclusive which forces us to rely on implicit attachment when the /m switch is invoked. Am I missing something?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;</description></item><item><title>re: Command Line Parameter Changes in Outlook</title><link>http://blogs.msdn.com/rgregg/archive/2007/12/03/command-line-parameter-changes-in-outlook.aspx#7546201</link><pubDate>Fri, 08 Feb 2008 23:57:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7546201</guid><dc:creator>rgregg</dc:creator><description>&lt;p&gt;Hi Bob:&lt;/p&gt;
&lt;p&gt;Since you're writing an application, I'd recommend you use Outlook COM object model or Simple MAPI to automate the process of creating a new mail item and attaching multiple files to the message.&lt;/p&gt;
&lt;p&gt;Because of changes in Outlook 2003 SP3 and later, you can no longer combine /m and /a, even when the /a is implied. Writing OM or SMAPI code to automate this will work better and be more reliable than using command line parameters.&lt;/p&gt;
</description></item><item><title>re: Command Line Parameter Changes in Outlook</title><link>http://blogs.msdn.com/rgregg/archive/2007/12/03/command-line-parameter-changes-in-outlook.aspx#7546228</link><pubDate>Fri, 08 Feb 2008 23:59:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7546228</guid><dc:creator>rgregg</dc:creator><description>&lt;p&gt;Simon:&lt;/p&gt;
&lt;p&gt;Unfortunately the scenario you are attempting is just broken in SP3. If your solution can be adapted to use the Outlook OM to display a new explorer on a particular folder, I would recommend taking that approach. &amp;nbsp;If that isn’t an option, then please contact Microsoft support to report the issue and optionally request a fix.&lt;/p&gt;
&lt;p&gt;--Ryan&lt;/p&gt;
</description></item></channel></rss>