>>Yep - the only problem is that you have to iterate through the entire directory just to get the count.
>
>True. But he said he needed file names as well. I'm hoping he is populating some sort of table at this point.
Once you get to the point of iterating through a couple of tons of files, you probably need more than just a name - the File object provides a tremendous amount of information - size, all three file dates if the file system supports them, short name, path ad nauseum. SYS(2000) will be -much- faster if he does iterate through and only needs the names - there's COM overhead for every access of the FSO methods and properties, while I suspect SYS(2000) is just a wrapper on a Win32 API function and native to VFP. Same thinking behind why ADIR() is so much faster than the FSO - COM is expensive.