We help IT Professionals succeed at work.

Open default browser from DOS

Clever_Bob
Clever_Bob asked
on
Medium Priority
879 Views
Last Modified: 2008-09-11
Hello folks, how do I Open default browser from DOS (Internet explorer) and point it to an asp website?

Cheers
Comment
Watch Question

Retired bureaucrat/desktop support
CERTIFIED EXPERT
Commented:
At a command prompt,

iexplore {your url here}

should do it.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Commented:
This isn't fancy, but......

"\Program Files\Internet Explorer\IEXPLORE.EXE" (name/ip of website)

....should work.  You could make life even easier by including that subfolder into your path statement.  Don't know of any command line switches for IEXPLORE, but there may be some.

Good luck!
The above two responses are indeed correct. There's also info I'd like to add.  The registry key below controls which application is used as default browser:

HKEY_CLASSES_ROOT\http\shell\open\command

You can experiment with it if you want to use an alternate or some funny applications to launch your web pages  :-)

You can also use argument like:

IExplore.exe %1

In places like scripts or batch file, where %1 represent the argument you supply to the script / batch file, just extra info :-) !!
The default-Application for any Filetype can be launched using the "start" command:

Start http://www.google.de/

Commented:
Running "iexplore" directly from the command line will force it to use Internet Explorer, overriding whatever the default browser may be.  If you use IvoBurkart's method, using "start", then the OS will look up what the default browser is, and use that to open the URL.

Author

Commented:
Thanks all for your help!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.