I can't use command line /f to open a message file

C

CLPO

I can't use the command line swich /f in outlook to open a message file. the
whole command is
c:\program file\microsoft office\office\outlook.exe /f R1010.msg
I encounter the following error
Cannot start Microsoft Office Outlook. Can't open file: r0101.msg, The
file may
not exist, you may not have the permission to open it , or it may be open
in
another program. right-click the folder that contains the file and then
click
properties to check your permission for the folder

I check the file exists, not used by other program and the premission is
granted.

Any one can help?

thanks
 
R

Roady [MVP]

You didn't specify a path to the file. Anyway, you don't need a command line
for that. Msg-files can be directly executed.
 
B

Brian Tillman

CLPO said:
I can't use the command line swich /f in outlook to open a message
file. the whole command is
c:\program file\microsoft office\office\outlook.exe /f R1010.msg

Several things wrong with this. First, a path must be enclosed in quotes if
it contains spaces. Second, the path to Outlook is incorrect. You have
neglected to include the version information the path will contain. Third,
you don't have a path to the MSG file. Finally, just create a shortcut to
the MSG file itself. Outlook will open, since MSG files are associated with
Outlook.
 
C

CLPO

Brain,

I include the path to the message file shown below:-
c:\PROGRA~1\MICROS~2\OFFICE11> outlook.exe /f "c:\program files\microsoft
offices\office11\R1010.msg"
I encounter the following error message
"Can't open file: c:\program files\microsoft
offices\office11\outlook\r1010.msg. The file may not exist, you may not have
permission to open it, or it may be open in another program. Rihgt-click the
folder that contains the file, and then click properties to check your
permission for the folder"

I and sure the R1010.msg exists in c:\program files\microsoft
offices\office11 and i have the permission to access the message file
R1010.msg.

Please help.
 
B

Brian Tillman

CLPO said:
I include the path to the message file shown below:-
c:\PROGRA~1\MICROS~2\OFFICE11> outlook.exe /f "c:\program
files\microsoft offices\office11\R1010.msg"
I encounter the following error message
"Can't open file: c:\program files\microsoft
offices\office11\outlook\r1010.msg. The file may not exist, you may
not have permission to open it, or it may be open in another program.
Rihgt-click the folder that contains the file, and then click
properties to check your permission for the folder"

I and sure the R1010.msg exists in c:\program files\microsoft
offices\office11 and i have the permission to access the message file
R1010.msg.

Your path to the MSG file is wrong. You have "Microsoft Offices" in the
path and it should be "Microsoft Office". Try

outlook.exe /f "C:\Program Files\Microsoft Office\OFFICE11\R1010.msg"

However, if your current default is in that folder (and from your prompt I
can see it is), this will suffice:

outlook.exe /f r1010.msg

I know is works because I duplicated it and it works for me.
 

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