DECLARE INTEGER FindExecutable IN Shell32; STRING @lpFile, STRING @lpDirectory,; STRING @lpResult * lcfile is the fully qualified file name to be used * to retrieve the executable name lcpath = JUSTPATH(lcfile) && In VFP 6.0. 5.0 requires Foxtools lcbuffer = SPACE(260) lnresult = FindExecutable(@lcfile, @lcpath, @lcbuffer) IF lnresult > 32 * The function succeeded. * Strip off any parameters here. ENDIFIf the return value is 31, there's no executable associated with the file. Values less than or equal to 32 are errors.