Moin,
And in newer versions of Delphi you can use a Marqueebar, so the user can see, that there is working something.
You can't the the number of files within a directory, without counting them in a separated TSearchRec loop (but then you would do everything twice). This way is only suitable, when you do big thinks with every file, so the counting is very fast compared to the calculation.
Sincerly
Fabian
PS: Sorry for my english