Is anybody aware of any functions that can obtain the number of items in a directory and even better, of a specific type eg: how many .exes are in a particular folder?
Nope, but would be easy to write one:
1. Use dos_system to do a directory listing such as "dir /B c:\\some\\directory\\*.exe > c:\\tmp\\exes.txt".
2. Open the file to which you redirected the output.
3. Loop through the file with file_getline while incrementing a counter.
4. Check the total of the counter variable. (May have to subtract 1 due to there being a blank line at the end?)
web site | [url=http://www.ebookworm.us/[/url]
[i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.</i] (The Song of Roland)