Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Size of directory
Message
 
À
23/08/2013 14:33:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01581198
Message ID:
01581212
Vues:
58
J'aime (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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform