>Hi Ed,
>
>
>>No, including 'D' gets both files and subfolders that are not hidden or system.
>
>What is the syntax you are using? For instance I want to get a list of all the .DBF files from my default directory down.
>
>I've tried the following and it only returns the names of the files in the default folder/directory (e:\vfe6\adev\alert\), and lnTotalSheets = 3 not the 7 it should return:
>
>lcSheetDir = "e:\vfe6\adev\alert\"
>
>lcFileName = lcSheetDir+ "*.DBF"
>lnTotalSheets = ADIR(laDir, lcFileName, "D")
>
>I've checked the file attributes and it should include them, they are not system or hidden. I've also noticed that if there aren't any files of the type you are looking for in the default folder lnTotalSheets = 0.
>
>I would appreciate insight into this, since you say it should work.
>
By limiting the file mask to *.DBF, it can't find anything not ending in *.DBF; the following works under my Win2K workstation:
? ADIR('F:\WINNT\*.*','D')
this returns 100 entries, some of which are folders. It is not recursive - it will not traverse subdirectories.