>>Bret,
>>
>>ShellExecute will return an error condition flag if there is no association for .htm files. The code in the dfwinapi classlib of the spyin.zip file has all the details.
>>
>>>Do you know of a good class that is available to enter a key and it tell me if the registry has that key registered?
>
>Your class is a great tool and I appreciate your time. My question involves knowing ahead of your shell.execute() method whether a .TAP extension is valid and can be handled by the system. Post error processing is ok, but in this instance I would like to know that the extension can be handled before hand.
>Any help would be appreciated.
Hi Brett,
Try the FindExecutable function in the SHELL32. Here's the declaration:
DECLARE INTEGER FindExecutable IN Shell32;
STRING @lpfile, STRING @lpdirectory, STRING @lpbuffer
lcdir = JUSTPATH(lcfile)
lcbuffer = SPACE(260)
lnresult = FindExecutable(@lcfile, @lcdir, @lcbuffer)
IF lnresult > 31
lnpt = AT(CHR(0), lcbuffer)
lcexecutable = LEFT(lcbuffer, lnpt - 1)
ENDIF
hth,
George
Ubi caritas et amor, deus ibi est