>>>Hi All
>>>
>>>Sorry for posting this again but how would I find out what and where the users default web browser is. Would I find the application associated with "HTM" using sample code provided by Cetin in a previous thread or is there another way?
>>>
>>>Thanks
>>
>>Check out the FindExecutable entry (by Erik Moore) on the UT API listing:
http://www.levelextreme.com/wconnect/wc.dll?FournierTransformation~2,31,Forum=0,18,29>>HTH
>
>J.
>
>The only thing about FindExecutable() is that a existing file's filename must be passed.
Yeah, I was just reading the other thread referenced by Jos. It is not clear if there are any constraints on using a file, so I should expand on my post:
DECLARE INTEGER FindExecutable IN Shell32;
STRING @lpFile, STRING @lpDirectory, STRING @lpResult
lcfile = "D:\Temp\empty.htm"
StrToFile("<HTML></HTML>", lcFile)
lcpath = JustPath(lcfile)
lcbuffer = SPACE(200)
lnresult = FindExecutable(@lcfile, @lcpath, @lcbuffer)
Erase (lcFile)
?lcBuffer
The other way that might work is to get the window name of the launched app by way of Shellexecute or GetObject(), but still sounds quirky and in need of a file name.
For example, with GetObject() you may test for the support of a certain interface, like document.All in IE or document.Layers in Netscape.