>VFP command "DIR" displays information about files in a folder, their total size and free space on the disk.
>How to extract total size and free space on the disk into an array?
>Is there a VFP function that returns total size in bytes of the files in a folder (including subfolders)?
>
> Thanks
>Ed
If scripting is an option this is very easy:
loFSO = CreateObject('Scripting.FileSystemObject')
loFolder = loFSO.GetFolder('c:\test')
? loFolder.Size
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?
"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare
"To die for a religion is easier than to live it absolutely"
Jorge L. Borges