Open .msg, .tif, .pdf and other files

C

Christer

Thank's Eric,
the method works, but not when I tryed to open an .msg
file using Outlook (the .msg file is not placed in a
Outlook archive).
Can you give me any hints how to handle this problem.
I'm using Office 2000 and the application is based on
Access.

Thanks
 
E

Eric Lawrence [MSFT]

Opening a .MSG file doesn't put it anywhere; I'm not sure why you would
expect it to do so?

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Christer

When I use the instruction Call Shell....
to execute a bat file it works if the bat file looks like
"programpath\ACRORD32.EXE" "filepath\file.pdf"
But this doesn't work
"programpath\OUTLOOK.EXE" "filepath\file.msg"

Christer
 
W

Wei-Dong Xu [MSFT]

Hi Christer,

Thanks for posting in the community!

From my understanding to this issue, when you specify one command in the
bat file, it failed to open the .msg file for you.

So far as I know, if you are going to open the msg format file, you will
need to specify one command line switch "/f" for the reading, for example:
<programpath>\OUTLOOK.EXE /f <filepath>\file.msg

Please feel free to let me know if you have any further questions.

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
C

Christer

Thanks Wei-Dong,

My application creates a bat file which starts the
appropriate program depending on file type.
I execute the batfile with the following statment
Call Shell(Environ$("COMSPEC") & " /c c:\StartProg.bat",
vbNormalFocus)
This works OK for all filetypes except .msg file.
The statment call Shell... dont open the file, but if I
execute the same bat file from Windows Explorer it works
as
expected. The command line contains the /f switch.

Christer
 

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