lnRetVal = adir(laFiles, "*.*") for i = 1 to lnRetVal lcFile = upper(laFiles[i, 1]) ClearAttributes(lcFile) erase (lcFile) endfor rd folder_name procedure ClearAttributes lparameter tcFileName if vartype(tcFileName) <> "C" or empty(tcFileName) return .f. endif local lcFile, lnRetVal lcFile = alltrim(tcFileName) DECLARE SHORT SetFileAttributes IN KERNEL32 ; STRING @ lpFileName, ; INTEGER dwAttributes lnRetVal = SetFileAttributes(lcFile, 0) && Remove all attributes return (lnRetVal > 0)