Results 1 to 5 of 5

Thread: [2005] Finding out which web browser is the default

  1. #1

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    [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
    I don't live here any more.

  2. #2
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

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

  3. #3

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [2005] Finding out which web browser is the default

    Sweet, cheers dude. Saves me a lot of time. Have a rep.
    I don't live here any more.

  4. #4
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Cool 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:
    1. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
    2.         System.Diagnostics.Process.Start("http://www.google.ca")
    3.         System.Diagnostics.Process.Start("http://www.Pharfruminsain.com")
    4.         System.Diagnostics.Process.Start("http://video.google.com")
    5.         System.Diagnostics.Process.Start("http://www.vbforums.com/showthread.php?t=396435")
    6.     End Sub
    And it opened 1 browser window with 4 tabs.
    .
    ~Peter


  5. #5

    Thread Starter
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.
    I don't live here any more.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width