Problem opening a msg file using ShellExecute()

J

Javed

Hi,

I am trying to open a outlook msg file programmaticatlly as below in
my C++ code.

ShellExecute(NULL, _T("open"), _T("C:\\Program Files\\Microsoft
Office\\OFFICE11\\OUTLOOK.EXE"), _T("C:\\Test.msg"), NULL, SW_SHOWNORMAL);

It used to work on Outlook 2003 SP2 and before but when I installed
SP3 it is giving following error
"The command line argument is not valid. Verify the switch you are
using.”

I tried using command line

C:\Program Files\Microsoft Office\OFFICE11>outlook.exe /open "C:
\Test.msg"

It gave me same error message

Anybody has any Idea please
 

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