up vote 1 down vote favorite
1
share [g+] share [fb]

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?

link|improve this question
feedback

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

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

4 Answers

Just type

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

You can also use

"C:\Program Files\Internet Explorer\iexplore.exe"
link|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
show 2 more comments
feedback

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"
link|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
feedback

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!

link|improve this answer
feedback

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

start iexplore
link|improve this answer
feedback

Your Answer

 
or
required, but never shown