Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have to launch Internet Explorer from the DOS command prompt.

I have done it with Firefox, like:

cd \program files\mozilla firefox\
firefox

How to do the same with Internet Explorer?

share|improve this question

migrated from stackoverflow.com Feb 25 '10 at 14:26

This question came from our site for professional and enthusiast programmers.

6 Answers 6

Just type

c:\windows\servicepackfiles\i386\iexplore.exe

You can also use

"C:\Program Files\Internet Explorer\iexplore.exe"
share|improve this answer
    
will this also work with the command line from windows (cmd) ? Cuz' it does not for me.. –  TheChange Feb 25 '10 at 13:18
    
@TheChange - My original post of just typing "iexplore.exe" doesn't work on the command line - sorry about that ... it works from START -> RUN ... the "c:\windows\servicepackfiles\i386\iexplore.exe" should work from the DOS prompt (cmd). –  Scott Vercuski Feb 25 '10 at 13:20
    
there is no "servicepackfiles" folder in my windows folder here (on work) and the IE is in program Files folder - maybe this is a country-related thing or something? (iam from germany) just interested :) btw. typing iexplore in Start->Run works –  TheChange Feb 25 '10 at 13:22
    
Thanks scott... can you tell one more thing??? i have to open command prompt, but my laptop is not starting, when i on it, it show a error.. BOOTMGR is compressed restart press ctrl+alt+dlt. i have to open dos and launch ieand then delete some file from c drive –  ankush Feb 25 '10 at 13:26
    
@TheChange - Just noticed that ... seems windows (US version) has a couple of iexplore.exe versions, very odd to say the least. I updated my post to include "C:\program files\internet explorer\iexplore.exe" ... I am hoping that is a common install point (even in the german/european version of windows) –  Scott Vercuski Feb 25 '10 at 13:27

Though you're asking for Internet Explorer: just in case you want to use the default browser, then use the start command:

start "" "http://superuser.com"
share|improve this answer
    
Maybe without the quotes, but I cannot test right now. Community wikified just to be sure. –  Arjan Feb 25 '10 at 14:39
    
@grawity, smart solution! –  Arjan Feb 25 '10 at 15:23

You should cut its location to its original location, "C:\Program Files\Internet Explorer\", and then you can start it by using:

start iexplore
share|improve this answer

There should be an environment variable for the Program Files directory. On my install it is %ProgramFiles%. It may be localized for a given language into whatever the equivalent phrase/word is in that language. I could imagine that the Internet Explorer folder name might be localized as well. This should handle cases where Windows is installed to a drive letter other than C:

Thus, to start Internet Explorer from the command line (for me):

"%ProgramFiles%\Internet Explorer\iexplore.exe"

Remember the double quotes as there is a space in the command line!

share|improve this answer

From anywhere:

start iexplore

ought to do the trick - actual path is unimportant. As long as the path exists - it'll run the executable. As a note: start firefox should work as well under a default installation.

If you want to run things without the path environment variable set - it's pretty easy to create a registry launch alias: http://commandwindows.com/runline.htm

share|improve this answer

The easy way to open internet explorer in the command prompt is by simply typing start iexplore.exe. You can also use the same method to open Chrome as well.

Don't forget to open command prompt in elevated mode.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.