>>Perhaps it's a WinXP problem. I'm on Win2k with VFP9. If I run:
>>
ADir(aFls, "c:\winnt\system32\*x*.dll"
>>I get 174 files and they are correct (they all contain "x" and are all DLLs
>>If I use:
>>
Sys(2000, "c:\winnt\system32\*x*.dll") (and ',1' for next in a loop)
>>I get 174 files and they are correct.
>>
>>If I change the "x" to "ax", I get 20 correct files in both cases.
>
>Could be several reasons:
>
>1) Our directory has more than 13K files
>2) It's on terminal server
>3) It looks like Shortnames are created (at least I got ~ when I ran DOS DIR command).
>4) Using VFP8 Sp1.
Well, I don't have a directory with that many files (why do you????), but I just ran it again on a directory with over 600 files using the UNC to the network in our Edmonton office and again, I get the correct number of files in both cases - still using VFP9 SP1 and Win2K.
I suspect it might be a WinXP issue.