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
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.
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.
"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.
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.
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.
#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...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With