*-------------------------------------------------------------------------- Function FileExists(FileName) && declare Integer GetFileAttributes in win32api string @ return (GetFileAttributes(@m.FileName) <> -1) endfunc *--------------------------------------------------------------------------also possible
*-------------------------------------------------------------------------- Function FileExists(FileName) return (alen(adir(aa, FileName, 'DHS')) > 0) endfunc *--------------------------------------------------------------------------I would avoid file() since it searches the set('path') if it can not find it and may return wrong information.