Re: dir()
- Posted by mattlewis (admin) Nov 17, 2009
- 1462 views
useless said...
Is it possible to know the size of the sequence dir() will return before i call dir()? Some of these dirs have 500,000+ files in them, and the memory Eu is using to dir() isn't returned to the OS when that var is cleared, pushing Eu to use 300megabytes or more of memory. This is unacceptable.
Assuming that you're on Windows, I think you could use FindFirstFile and FindNextFile with wildcards.
Matt