Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to get the default browser and its's path ?

How to get the default browser and its's path ?

Scheduled Pinned Locked Moved C / C++ / MFC
windows-admintutorialquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vikramj
    wrote on last edited by
    #1

    I need to read the default browser of the system and spawn it's instance. How can do that ? Right now my application is reading the IE registry keys to know it's path and spawning it. But i need to support all browsers, atleast IE / Netscape / Mozilla ? How can do it ? Thanks and regards. Vikram

    I V V 3 Replies Last reply
    0
    • V vikramj

      I need to read the default browser of the system and spawn it's instance. How can do that ? Right now my application is reading the IE registry keys to know it's path and spawning it. But i need to support all browsers, atleast IE / Netscape / Mozilla ? How can do it ? Thanks and regards. Vikram

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      If you have a html page you are wanting to fire up in a browser (I'm guessing you don't want a blank page) then you can just use good old ShellExecute. To get a blank page, you *might* be able to use "about:blank" for the file to "open". Iain.

      1 Reply Last reply
      0
      • V vikramj

        I need to read the default browser of the system and spawn it's instance. How can do that ? Right now my application is reading the IE registry keys to know it's path and spawning it. But i need to support all browsers, atleast IE / Netscape / Mozilla ? How can do it ? Thanks and regards. Vikram

        V Offline
        V Offline
        valikac
        wrote on last edited by
        #3

        Another solution is to view the registry and determine what HTML is linked to. In your problem, edit that registry key. Kuphryn

        1 Reply Last reply
        0
        • V vikramj

          I need to read the default browser of the system and spawn it's instance. How can do that ? Right now my application is reading the IE registry keys to know it's path and spawning it. But i need to support all browsers, atleast IE / Netscape / Mozilla ? How can do it ? Thanks and regards. Vikram

          V Offline
          V Offline
          vikramj
          wrote on last edited by
          #4

          Thanks for the replies. Anyway, got the path of the browser using API FindExecutable()passing the path of a .html/.htm file. thanks & regards Vikram

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups