PC Review


Reply
Thread Tools Rate Thread

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

 
 
CLPO
Guest
Posts: n/a
 
      14th May 2008
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


 
Reply With Quote
 
 
 
 
Roady [MVP]
Guest
Posts: n/a
 
      14th May 2008
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.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

http://www.msoutlook.info/
Real World Questions, Real World Answers

-----

"CLPO" <(E-Mail Removed)> wrote in message
news:012E12F3-4D7D-4590-88CF-(E-Mail Removed)...
> 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
>
>

 
Reply With Quote
 
Brian Tillman
Guest
Posts: n/a
 
      14th May 2008
CLPO <(E-Mail Removed)> wrote:

> 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.
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
CLPO
Guest
Posts: n/a
 
      21st May 2008
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.



"Brian Tillman" wrote:

> CLPO <(E-Mail Removed)> wrote:
>
> > 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.
> --
> Brian Tillman [MVP-Outlook]
>
>

 
Reply With Quote
 
Brian Tillman
Guest
Posts: n/a
 
      21st May 2008
CLPO <(E-Mail Removed)> wrote:

> 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.
--
Brian Tillman [MVP-Outlook]

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RunApp to open file with Wildcard in command line =?Utf-8?B?Umlja1c=?= Microsoft Access Macros 0 2nd Aug 2007 11:56 PM
Command line to open new outlook message and attach to it multiple attachments daks Microsoft Outlook 0 7th Jun 2005 10:23 PM
Open a Template/CSV-File from the command line sidibou - ExcelForums.com Microsoft Excel Programming 3 17th Sep 2004 05:00 PM
Need to change 'open with' file from command line PD Microsoft Windows 2000 CMD Promt 4 24th Jan 2004 12:26 PM
Command line to open an Access file Jon Microsoft Access 1 31st Oct 2003 12:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:05 PM.