Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running an HTML from within VFP
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00143419
Message ID:
00144301
Views:
28
>>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,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform