>? Adir(laFiles, 'X:\foxv\ATC\Datadump\VCC\*.*') && 16933 >? Alen(laFiles) && 84665 >? Alen(laFiles, 1) && 16933 > >for lnFile = Alen(laFiles, 1) - 50 to Alen(laFiles, 1) > ? laFiles[lnFile, 1] && Looks as they are indeed the last 50 files (the files names are date-related and I got the last days as I expected) >next lnFile >I have had to process large numbers of files in the past and as I remember it, ADIR did not work reliably. Of course this was before the array size became limitless. I know I did a sample recently with 500 files and ADIR did not show more than 488. I just tried with 100,000 and it worked fine. Doesn't make me feel warm and fuzzy.