Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find programatically where iexplore.exe is?

I need to run myApp.exe that in turn will launch iexplore.exe. What is the most robust, generic way (OS bit version agnostic) to do so?

Can you point me to the right registry key /env var/other mean to do so?

Thanks, Guy

like image 958
Guy Avatar asked Apr 28 '11 16:04

Guy


People also ask

Where is Iexplore exe located?

Regardless whether you use Windows 10, Windows 8.1 or Windows 7, open File Explorer/Windows Explorer and head to "C:Program FilesInternet Explorer", where "C" is the letter of the partition on which Windows is installed. Then look for the file called "iexplore.exe" and double-click or double-tap on it.

How do I restore Iexplore exe?

Internet Explorer, iexplore.exe, will be located in C:\Program Files\Internet Explorer . If it does not appear there, Internet Explorer has been turned off in Windows Features. To enable it, search for Windows Features and select Turn Windows features on or off. Then check the box next to Internet Explorer 11.

Who is Iexplore exe?

"iexplore.exe" is the main executable of the Internet Explorer browser from Mircosoft. It is considered a part of the Windows operating system. Check the security settings for this program to minimize the risk when you are surfing.

Which command can be used to launch the IE browser?

Open a 'Command Prompt' window. Type cd/ to get a blank C: prompt. Type in "C:\Program Files\Internet Explorer\iexplore.exe" -extoff (where C: is your local drive). Press ENTER.


2 Answers

For newer versions of Internet Explorer you can check the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Capabilities\ApplicationDescription.

That being said, the most backward- and forward-compatible way will be to look in the following paths (in this order):

In Registry: HKEY_CLASSES_ROOT\IE.AssocFile.HTM\shell\open\command %ProgramFiles(x86)%\Internet Explorer\iexplore.exe %ProgramFiles%\Internet Explorer\iexplore.exe

Note that 64-bit Windows versions may have two different versions of IE: 32-bit and 64-bit. At least as things are now (with IE9), you'd usually want to use the 32-bit version, since it's better optimized and has better plugin/ActiveX compatibility.

like image 182
Boaz Yaniv Avatar answered Oct 17 '22 14:10

Boaz Yaniv


#include <stdlib.h>  
int main() {     
    system("iexplore.exe");
    return 0; 
} 

in any version of windows that I have ever tried... if you click run then type iexplore.exe, Internet Explorer will run. This should do the same...

like image 30
g19fanatic Avatar answered Oct 17 '22 15:10

g19fanatic