Opening a url on system default webbrowser from Command Prompt

biztiger
biztiger used Ask the Experts™
on
Hi Experts,

Do you know how to open a url on system default browser from Command Prompt?

I can open any url using Internet Explorer, but not on default system web browser.

For Internet Explorer I use the following command:
start iexplore "http://myurl.com"

Thanks in advance for your help.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
you don't need even double quotes

Author

Commented:
It works only if you omit the double quotes. Now if I want to open the following in the default webbrowser what to do:

E:\a\New Project\src\main.html

start "E:\a\New Project\src\main.html" doesn't seems to work.

But you were right on my basic question.
Thanks a lot.  
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

did you try start  E:\a\New Project\src\main.html
It works for me.

Author

Commented:
Look at the space between New and Project. When I try to open this it gives a error syaing:
Windows can't find "E:\a\New" ......

It doesn't take the full url for space
Top Expert 2009
Commented:
Put another double quotes.

start "" "E:\a\New Project\src\main.html"

This first is actually specifying a title or you could name the title. You won't see it in this case though.

start "title" "E:\a\New Project\src\main.html"


Author

Commented:
Thanks all of you for your valuable guidance.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial