>Hi!!!
>
>I have a little problem, i need get the size of a diretory, like if a right click in the explorer an select propertys, a use the object Filer, of the dll filer.dll, but this have a lot of troubles, the first trouble is that object is very slow, in the directory with too many files, the time for calculate the full size, is real big, the second trouble is that exist a diferent between the fuction result's and the property of the file explorer, somebody now ease way to get th size of directory, can help.
I'll bet the the filer is utilizing code similar to that found in the Windows Script Host, if not the WSH itself. For example
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
oFolder = oFSO.GetFolder("C:\Lots of files and folders")
? oFolder.Size
Will take a long time since the folder tree has to be parsed and calculated. You can see Windows itself doing this by right clicking the folder and selecting properties.
George
Ubi caritas et amor, deus ibi est