>>>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
>* lcfile is the file you want to find the executable for
>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,
Thanks George I will give it a go...
Bret Hobbs
"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope