"angela wells" <an***@all7.com> wrote in message
news:DA**********************************@microsof t.com...
Thanks Will!
You are welcome.
I wonder, is there an API function I can call to
get the default browser, so I can substitute that
value for "iexplore.exe"?
An easy thing to do is to create an .HTM file (it doesn't have to contain
anything valid) and then pass its name to FindExecutable(). You could also
look for the info about file assocaitions in the registry.
I didn't suggest that originally because I thought you specifically needed a
new instance of the browser. That's why I used the "-new" modifier on the
command line. I don't know if there is any commonality with respect to
command line parameters among the browsers. In other words, I'm not sure
that the conditions under which browsers choose to use an existing instance
of the browser or create a new one are at all common.
A decade ago, and before the browser war ended <g>, SpyGlass published a
spec implemented with Dynamic Data Exchange (DDE) protocol on Windows and
something else on Macs so that you could do the kind of thing you want in a
browser independent, and (almost) platform independent way. I know it worked
in '95 when I last used it <g>, I don't know if it is still a viable option.
Nevertheless, the knowledge base article that barely describes it still
lives here:
http://support.microsoft.com/?id=160957
Regards,
Will