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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityJust type
c:\windows\servicepackfiles\i386\iexplore.exe
You can also use
"C:\Program Files\Internet Explorer\iexplore.exe"
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"
start "http://example.com"
works no more.
Sep 16, 2014 at 10:54
start https://superuser.com
.
Jan 31, 2020 at 18:38
You should cut its location to its original location, "C:\Program Files\Internet Explorer\", and then you can start it by using:
start iexplore
start iexplore https://stackoverflow.com
Oct 30, 2019 at 19:33
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
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!
start iexplore
looks better.
Here's how I use it:
iexplore "http://superuser.com/questions/113345/how-to-launch-internet-explorer-from-the-command-prompt"
Result: Opens IE and navigates to the URL.
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.
The shortest way is to use start with exe name as 1º param.
start "" iexplore
// you may use start iexplore
on most systems.start "" firefox
start "" chrome
Yes! works.
But you have ask only about IExplorer. Following your code sample:
cd \program files\mozilla firefox\
firefox
Same code with internet explorer equals to:
cd \program files\internet explorer\
iexplore
When start iexplorer
do not work for you, the best chance may be:
"%programfiles%\internet explorer\iexplore" // you do not need to use uppercases
Depending on where your internet Explorer system folder files are located, the following opens up the yahoo main page for instance as it is:
"C:\Program Files (x86)\Internet Explorer\iexplore.exe" "http:\yahoo.com"
To force internet explorer to be used try this:
"C:\Program Files\Internet Explorer\IEXPLORE.EXE" -new "https://www.google.com"
After several attempts, i found that you must type -new in between the iexplore and website. Hope this helps.
-new
do? Please do not respond in comments; edit your answer to make it clearer and more complete.
Jan 31, 2020 at 18:43