On 24 Mar 2006 08:53:36 -0800, "JavaEnquirer"
<javaenquirer@hotmail.co.uk> wrote, quoted or indirectly quoted
someone who said :
>I need to count the number of files and folders that exist under a
>given root folder on aWindows. Easy to do with recursion and the
>java.io.File class. A little slow however. Does anyone know of any open
>source solutions ( maybe using native code ) or other cunning
>suggestions to quickly obtain the information I need?
Given that Windows itself takes considerable time to generate that
information when you open a directory in MyComputer, I suspect the
directories simply don't have that summary information available.
A strategy might be to scan the directories ahead of time and put up
with slightly out of date information as 4NT does.
see http://mindprod.com/jgloss/fornt.html
For another strategy, see http://mindprod.com/projects/filefinder.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.