Fabio,
Sorry I forgot to mention that it was from VFP6 help (I haven't upgraded here at home). I am glad to hear that they have 'upgraded' the directory() function. Do you know if that change was made in VFP7 or 8?
Einar
>From Visual FoxPro help:
>"DIRECTORY( ) returns .F. for directories with Hidden or System attributes."
>That might be the 'flaw' that you remember about the directory() function. I belive your method (adir()) would 'find' a directory even if it was hidden. I also seem to remember that there as a good reason for using adir() instead of directory() but I can't remember if that is the only reason.
>Not true,
>
>DIRECTORY(cDirectoryName , 1)
>
>
>not filter HS attributes.
>
>Fabio
Semper ubi sub ubi.