Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximum number of files in one directory?
Message
 
To
18/02/2009 15:51:14
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Windows
Category:
Networking & connectivity
Miscellaneous
Thread ID:
01382738
Message ID:
01382751
Views:
58
>Beware! :)
>
>There may not be a limit in OS terms, but in VFP terms, there is definitely a limit for the ADIR() function. 488 files on my machine. Pass that limit, ADIR will still work and not give any errors, but will only return 488 files.

That does not happen to me at all.
? Adir(laFiles, 'X:\foxv\ATC\Datadump\VCC\*.*') && 16933
? Alen(laFiles) && 84665
? Alen(laFiles, 1) && 16933

for lnFile = Alen(laFiles, 1) - 50 to Alen(laFiles, 1)
	? laFiles[lnFile, 1] && Looks as they are indeed the last 50 files (the files names are date-related and I got the last days as I expected)
next lnFile
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform