Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple folder size calculator
Message
De
08/08/2007 11:53:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01246791
Message ID:
01246805
Vues:
27
>>I need a way to quickly determine the total size of a folder (including all files & subfolders) before attempting to copy it. If I knew the size in bytes I could subtract that from diskspace() to see if there is enough room.
>>I'm sure this is a common issue. Anybody have a neat solution?
>
>Try
>
>loFSO = CREATEOBJECT("Scripting.FileSystemObject")
>loFolder = loFSO.GetFolder('c:\test')
>?loFolder.Size
That is excellent. Works great and fast. Unfortunately I am not supposed to use windows scripting. Anything from the API crowd?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform