Launching Outlook from Command Prompt

  • Thread starter Ashraf Moollan www.ssw.com.au
  • Start date
A

Ashraf Moollan www.ssw.com.au

Hi All,

When I do start>run and type "outlook", outlook launches successfully, even
though the path to outlook isn't set. If I try to type in outlook in command
prompt, outlook doesn't launch.

Any ideas where start>run gets the path to outlook from? This also seem to
work if I do a 'System.Diagnostics.Process.Start("outlook.exe")' under
vb.net

I'd really like to know how to determine the path to outlook.exe, given
that, as I said, it's not in path variable.

Any help/directions much appreciated

--
Regards,

Ashraf Moollan
Software Developer
(e-mail address removed)
Phone: +612 9953 3000



Superior Software for Windows Building better Microsoft solutions in
ASP.NET, VB.NET, C#, SQL Server, Exchange and MS Access

* How do I send an email in HTML with Outlook through code?
http://www.ssw.com.au/SSW/kb/KB.aspx?KBID=Q251501
* SSW Exchange Reporter - Get the information you want from your company's
email system http://www.ssw.com.au/ssw/ExchangeReporter/
 
J

Jose

I did a registry search for .msg since I know Outlook is
the registered handler for this file type.

That led me to the registry value HKEY_CLASSES_ROOT /
msgfile / shell / open / command, whose default value
contains the path to the Outlook executable.

You might be able to use this for your needs.

Jose
 

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