?
Solved

Shell to IE

Posted on 2006-11-01
2
Medium Priority
?
158 Views
Last Modified: 2010-04-30
I need to shell to IE within a VB app. Some caveats:

1) IE will not always be the default browser, so ShellExecute API will not always work.
2) The path to iexplore.exe may not always be in the environment PATH variable so SHELL("iexplorer.exe") may produce a file not found error.
3) Although more than likely so, I do not know if I can always count on iexplore.exe being in the directory C:\Program Files\Internet Explorer\ (not on C drive, not in the directory Internet Explorer...)

I do not want to initiate a search every time to find it. Is there a way (reading a specific registry key, etc.) that I can find it. Since it is such an integral part of M$ operating system, you whould think its location would be engraved in stone somewhere.

Doug
0
Comment
Question by:dbbishop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
jmundsack earned 1000 total points
ID: 17852683
Try this:

Public Sub Main()
    Dim oIE As Object
    Set oIE = CreateObject("InternetExplorer.Application")
    MsgBox oIE.Path
End Sub

HTH-Jon
0
 
LVL 15

Author Comment

by:dbbishop
ID: 17852758
I went ahead and used FullName property, with includes the path and the application name. Thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month7 days, 21 hours left to enroll

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question