>The ADIR() has flags to address that.
cAttribute
Specifies the inclusion of subdirectories and hidden or system files.
cAttribute can contain any combination of D, H, and S. Including D returns subdirectory names of the current directory in addition to file names that match the file skeleton specified in cFileSkeleton. Including H returns information about hidden files that match the file skeleton specified in cFileSkeleton. Including S returns information about system files that match the file skeleton specified in cFileSkeleton.
Include an empty string in cFileSkeleton to return just subdirectory names, hidden files or system files.
You can include V in cAttribute to return the volume name of the current drive. Only the volume name is returned to the array if V is included with D, H, or S. The volume name is stored in the first array element and the remainder of the array is truncated.
If I only want files, which attribute do I need?
Thanks again.
OK, I used HS and it worked. E.g. I already changed the form to use adir.
If it's not broken, fix it until it is.
My Blog