Outlook 2007 command line switch

C

capodles

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 (e-mail address removed) \"%1\""
_________________________________________

The actual command in the registy reads:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m (e-mail address removed) "%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 (e-mail address removed)

I have also tried:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m (e-mail address removed) /a "%1"

I would *really* like to get this functionality back. Does anyone
have any ideas?
 
D

Diane Poremsky [MVP]

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\""

---------------










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 (e-mail address removed) \"%1\""
_________________________________________

The actual command in the registy reads:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m (e-mail address removed) "%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 (e-mail address removed)

I have also tried:

"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m (e-mail address removed) /a "%1"

I would *really* like to get this functionality back. Does anyone
have any ideas?
 
C

capodles

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:
(e-mail address removed)

Outlook Tips:http://www.outlook-tips.net/
Outlook & Exchange Solutions Center:http://www.slipstick.com
Subscribe to Exchange Messaging Outlook newsletter:
(e-mail address removed)




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 (e-mail address removed) \"%1\""
_________________________________________
The actual command in the registy reads:
"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m (e-mail address removed) "%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 (e-mail address removed)
I have also tried:
"C:\Program Files\Microsoft Office\office12\OUTLOOK.EXE" /c ipm.note /
m (e-mail address removed) /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.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top