We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Open a web page in default browser

DenMan
DenMan asked
on
Medium Priority
594 Views
Last Modified: 2013-11-19
From within an MFC program, how do I send an "open this web page" command to the default web browser?  How would I send it to a specific browser (such as Netscape)?
Comment
Watch Question

Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
The registry entry on the machine I'm using is
  "<path>\Netscape.exe -h "%1""

This seems to open the search page at netscape, with the URL being one of the parameters.  I found that if I remove the -h and %1, it works ok.

Is there a way to send a cookie to Netscape at the same time?  I have a program that logs into a site, and it would sure be nice if I didn't require the user to also log in when Netscape gets opened.

Commented:
Yes I had the same problem with Netscape and I removed the "-h". Now everything runs fine - including IE.

You better put your last question in a question instead of in a comment.

Commented:
What I mean is that I can't help you with the cookie problem, but if you put the question in a EE "Question" you'll get the attention of some experts in the field.

Author

Commented:
Will do.  Thanks for the advice.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*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.