Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Size of directory
Message
 
To
23/08/2013 14:33:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01581198
Message ID:
01581212
Views:
59
Likes (1)
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform