mauro russo wrote: > is it possible to obtain the number of files in a directory (no > sub-directories) > without to enumerate all files, for example as FindFirst and FindNext?
No. You have to count them. A TFileListBox would be overkill. Even if it works non-visually, it still needs to do all the work of enumerating the directory, and then it has the overhead of storing the file information that you apparently don't need. When counting the files, make sure you remember to ignore the current and parent directories (. and ..). -- Rob

