LOCAL lcPath,lcFile LOCAL ARRAY laFile(1) lcPath="e:\xx\" lcFile=SYS(2000,lcPath+"*.*") && get first file DO WHILE !EMPTY(lcFile) =ADIR(laFile,lcPath+lcFile) && Get file informations ?laFile(1,1),laFile(1,2),laFile(1,3),laFile(1,4) * Your test lcFile=SYS(2000,lcPath+"*.*",1) && get next file ENDDO>I have a direcectory of tables, one for each month (yyyymm.dbf), which I need to cycle through and delete all those older than 30 days.