-
I’ve been attempting to read HKEY_CLASSES_ROOT\HTTP\shell\open\command in order to determine the command to launch the current user’s default browser. But now that I’ve, say, LOOKED at help (as in actually paid attention to the content there-in) it pretty clearly states that I can’t read HKCR. D’oh!!- Unfortunately I didn’t find default browser information anywhere else; it appears that setting the default browser merely updates all of the “open” commands for the various “webbish” file extensions. Is there a place I’ve missed (crosses fingers) in HKCU or HKLM that tells what the user’s default browser is?
-
Thanks for your time…
Subject: SOLVED: User’s default browser…
-
Search the Forum for “ShellExecute”, and ye too shall be enlighted. (one-eyed stare)- Essentially, the trick is not to look for the user’s default browser, because it is only present in HKCR. Instead, the above command executes a “file” directly by invoking the associated application on it, so passing it an HTML file automagically launches the user’s default brower in order to open it.
-
Simple, no Registry access. I like it!
-
Hope this helps someone…