>>We have a program that uses ADIR() to get a list of PDFs that have a modification date of 7 prior to the current date. If they are older than 7 days they are deleted. The problem is that the number of files in the directory exceeds the limit of ADIR().
>>
>>I have been searching for an elegant solution, but I have not found it yet. Can anyone help out?
>>
>>Regards,
>>
>>James
>
>Use sys(2000) in a loop.
I just wanted to suggest the same thing. I also checked that it still works (it does). Haven't used it since 1989. Nice to see I'm not the only one who remembers it :).