[2005] Finding out which web browser is the default
Any of you guys know how to get the name of the default web browser on the user's PC?
My app needs to be able to provide enhanced functionality for Firefox if the user has it, otherwise it just operates normally using Internet Explorer.
I imagine its a registry key that I need to check but I'm unable to check at the moment because I am running linux at home (my development machine is at work of course :)).
Also does anyone know of a good source of windows-compatible commandlines for both IE and Firefox?
Basically what i need to be able to do is this...
if default browser = firefox then
[launch 4 HTML files in a single firefox window (one tab per file).]
else
[launch 4 separate IE windows, one for each file]
end if.
Also if it is possible to fin out he version number of IE that would let me open multiple tabs in IE7 too.
Cheers :)
Wosser
Re: [2005] Finding out which web browser is the default
Check out this key:
HKEY_CLASSES_ROOT\HTTP\shell\open\ddeexec\Application
The value should be "Firefox" if it is set.... or "IExplore" if IE is set....
Re: [2005] Finding out which web browser is the default
Sweet, cheers dude. Saves me a lot of time. Have a rep.
Re: [2005] Finding out which web browser is the default
As a small side note to what you're doing,...
I ran the following code on my machine with IE7 on it:
VB Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
System.Diagnostics.Process.Start("http://www.google.ca")
System.Diagnostics.Process.Start("http://www.Pharfruminsain.com")
System.Diagnostics.Process.Start("http://video.google.com")
System.Diagnostics.Process.Start("http://www.vbforums.com/showthread.php?t=396435")
End Sub
And it opened 1 browser window with 4 tabs.
.
Re: [2005] Finding out which web browser is the default
Ah nice one, thats handy to know. I wonder if that behaviour is conistent to all windows machines with IE7 or if its configurable.
Cheers.