You are here: Office-Outlook.com  / Outlook Forum

Outlook 2007 command line switch

Home » General Outlook opportunities » Outlook Public
Outlook 2007 command line switch [message #137370] Tue, 06 March 2007 10:48 Go to next message
capodles
Messages: 4
Registered: March 2007
Junior Member
Good afternoon everyone,

I got Office 12 a couple of weeks ago and I'm having a problem with
Outlook.

In Outlook 11 I had this registry entry:
__________________________
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\David]
@="David"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\David\Command]
@="\"C:\\Program Files\\Microsoft Office\\office12\\OUTLOOK.EXE\" /c
ipm.note /m David@boss.com \"%1\""
_________________________________________

The actual command in the registy reads:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m david@boss.com "%1"

This creates an entry in the context menu of all files. Clicking on
it creates an Outlook email message with the file attached and my
boss's email address filled in.

However, with Outlook 12 I get an "Invalid command switch" error.
I know it has to do with the attachment because this still works:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m david@boss.com

I have also tried:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m david@boss.com /a "%1"

I would *really* like to get this functionality back. Does anyone
have any ideas?
Re: Outlook 2007 command line switch [message #137851] Wed, 07 March 2007 13:57 Go to previous message
capodles
Messages: 4
Registered: March 2007
Junior Member
On Mar 6, 3:53 pm, "Diane Poremsky [MVP]" <outlook...@msn.com> wrote:
> It's broken. I used to use a shortcut in the send to folder to do the same
> thing - it won't work with the address switch anymore and requires the /a
> switch. Piggybacking two or more switches generally doesn't work, except as
> required (i.e., /c /m).
>
> This will add the selected attachment:
> "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /a
>
> although you can't include an address in the command line, you can use a
> custom form with the address in the to field:
> "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /c IPM.note.sendto
> /a
>
> This command line works in the shell:
> "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /c IPM.note.sendto
> /a "%1"
>
> To publish a form you'll need ot show the dev ribbon - when you are ready to
> publish, go to the office icon - click the editor options button on the
> lower right of the flyout and check the option to show the dev ribbon.
>
> ------------
>
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell\Send to Boss\Command]
> @="\"C:\\Program Files\\Microsoft Office\\Office12\\OUTLOOK.EXE\" /c
> IPM.note.sendto /a \"%1\""
>
> ---------------
>
> --
> Diane Poremsky [MVP - Outlook]
> Author, Teach Yourself Outlook 2003 in 24 Hours
> Need Help with Common Tasks?http://www.outlook-tips.net/beginner/
> Outlook 2007:http://www.slipstick.com/outlook/ol2007/
>
> Outlook Tips by email:
> dailytips-subscribe-requ...@lists.outlooktips.net
>
> Outlook Tips:http://www.outlook-tips.net/
> Outlook & Exchange Solutions Center:http://www.slipstick.com
> Subscribe to Exchange Messaging Outlook newsletter:
> EMO-NEWSLETTER-SUBSCRIBE-REQU...@PEACH.EASE.LSOFT.COM
>
> <capod...@yahoo.com> wrote in message
>
> news:1173206918.378662.24530@q40g2000cwq.googlegroups.com...
>
>
>
> > Good afternoon everyone,
>
> > I got Office 12 a couple of weeks ago and I'm having a problem with
> > Outlook.
>
> > In Outlook 11 I had this registry entry:
> > __________________________
> > Windows Registry Editor Version 5.00
>
> > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\David]
> > @="David"
>
> > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\David\Command]
> > @="\"C:\\Program Files\\Microsoft Office\\office12\\OUTLOOK.EXE\" /c
> > ipm.note /m D...@boss.com \"%1\""
> > _________________________________________
>
> > The actual command in the registy reads:
>
> > "C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
> > m d...@boss.com "%1"
>
> > This creates an entry in the context menu of all files. Clicking on
> > it creates an Outlook email message with the file attached and my
> > boss's email address filled in.
>
> > However, with Outlook 12 I get an "Invalid command switch" error.
> > I know it has to do with the attachment because this still works:
>
> > "C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
> > m d...@boss.com
>
> > I have also tried:
>
> > "C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
> > m d...@boss.com /a "%1"
>
> > I would *really* like to get this functionality back. Does anyone
> > have any ideas?- Hide quoted text -
>
> - Show quoted text -

Thank you for your help. I'll miss my shortcut. I don't suppose they
will ever fix it.....
Re: Outlook 2007 command line switch [message #153378] Wed, 07 March 2007 13:57 Go to previous message
capodles
Messages: 4
Registered: March 2007
Junior Member
On Mar 6, 3:53 pm, "Diane Poremsky [MVP]" <outlook...@msn.com> wrote:
> It's broken. I used to use a shortcut in the send to folder to do the same
> thing - it won't work with the address switch anymore and requires the /a
> switch. Piggybacking two or more switches generally doesn't work, except as
> required (i.e., /c /m).
>
> This will add the selected attachment:
> "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /a
>
> although you can't include an address in the command line, you can use a
> custom form with the address in the to field:
> "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /c IPM.note.sendto
> /a
>
> This command line works in the shell:
> "C:\Program Files\Microsoft Office\Office12\OUTLOOK.EXE" /c IPM.note.sendto
> /a "%1"
>
> To publish a form you'll need ot show the dev ribbon - when you are ready to
> publish, go to the office icon - click the editor options button on the
> lower right of the flyout and check the option to show the dev ribbon.
>
> ------------
>
> Windows Registry Editor Version 5.00
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\Shell\Send to Boss\Command]
> @="\"C:\\Program Files\\Microsoft Office\\Office12\\OUTLOOK.EXE\" /c
> IPM.note.sendto /a \"%1\""
>
> ---------------
>
> --
> Diane Poremsky [MVP - Outlook]
> Author, Teach Yourself Outlook 2003 in 24 Hours
> Need Help with Common Tasks?http://www.outlook-tips.net/beginner/
> Outlook 2007:http://www.slipstick.com/outlook/ol2007/
>
> Outlook Tips by email:
> dailytips-subscribe-requ...@lists.outlooktips.net
>
> Outlook Tips:http://www.outlook-tips.net/
> Outlook & Exchange Solutions Center:http://www.slipstick.com
> Subscribe to Exchange Messaging Outlook newsletter:
> EMO-NEWSLETTER-SUBSCRIBE-REQU...@PEACH.EASE.LSOFT.COM
>
> <capod...@yahoo.com> wrote in message
>
> news:1173206918.378662.24530@q40g2000cwq.googlegroups.com...
>
>
>
> > Good afternoon everyone,
>
> > I got Office 12 a couple of weeks ago and I'm having a problem with
> > Outlook.
>
> > In Outlook 11 I had this registry entry:
> > __________________________
> > Windows Registry Editor Version 5.00
>
> > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\David]
> > @="David"
>
> > [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\David\Command]
> > @="\"C:\\Program Files\\Microsoft Office\\office12\\OUTLOOK.EXE\" /c
> > ipm.note /m D...@boss.com \"%1\""
> > _________________________________________
>
> > The actual command in the registy reads:
>
> > "C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
> > m d...@boss.com "%1"
>
> > This creates an entry in the context menu of all files. Clicking on
> > it creates an Outlook email message with the file attached and my
> > boss's email address filled in.
>
> > However, with Outlook 12 I get an "Invalid command switch" error.
> > I know it has to do with the attachment because this still works:
>
> > "C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
> > m d...@boss.com
>
> > I have also tried:
>
> > "C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
> > m d...@boss.com /a "%1"
>
> > I would *really* like to get this functionality back. Does anyone
> > have any ideas?- Hide quoted text -
>
> - Show quoted text -

Thank you for your help. I'll miss my shortcut. I don't suppose they
will ever fix it.....
Previous Topic:The rule could not be created
Next Topic:Customized view in Outlook
Goto Forum: