Karen,
the third column in the array is the date of the file, can you use that to determine your oldest folders?
If not you can use a recursive operation to drilldown into the directories to get the dates on the files in the folder. Check the Wiki article
http://fox.wikis.com/wc.dll?Wiki~RecursionInVFP~VFP>Thnks again Tore. I seem to have the worst luck with your answers. All what you say is golden - it looks like it should work but alas i get nudda
> you suggested:
>lnNumDir=adir(laDir,'c:\temp','D')
>
>Here is the exact codes i am using - together with the results of each search: (there are in fact well over 150 directories)
>
>lnNum =adir(ladir,'c:\Temp\post\vault\','D')
>? lnnum
>FOR nCount = 1 TO lnNum
> ? laDir(nCount,1)
>ENDFOR
>RESULTS OF THE SEARCH:
> 2
>.
>..
>
>lnNum =adir(ladir,'c:\Temp\post\vault','D')
>? lnnum
>FOR nCount = 1 TO lnNum
> ? laDir(nCount,1)
>ENDFOR
>RESULTS OF THE SEARCH:
>
> 1
>VAULT
>
>It doesn't seem to want ot count INSIDE the vault directory.
>
>What am i doing wrong here?