FUNCTION FileEx LPARAMETER tcfilename LOCAL llresult, lcpath IF EMPTY(JUSTPATH(tcfilename)) llresult = FILE(tcfilename) ELSE lcpath = SET('PATH') SET PATH TO llresult = FILE(tcfilename) SET PATH TO (lcpath) ENDIF RETURN llresult ENDFUNCSince it is a known issue, and applies (according to the KB article) only to VFP 6.0, I'd be surprised if it wasn't fixed in the next version.