Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate KG,GB from Bytes
Message
De
17/07/2006 03:32:25
 
 
À
17/07/2006 03:28:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Divers
Thread ID:
01136867
Message ID:
01136868
Vues:
10
>Hi,
>
>I am using the GetDiskFreeSpaceEx API to get the Current Drive's Disk space. I want to display the total space and free space available on the disk.
>The GetDiskFreeSpaceEx return the value in bytes.
>
>Is there any wan I can convert the Bytes to MB or GB.
>
>Any Suggestions.
>Regards,
>JD

1KB=1024B (=2^10 or 2**10 in VFP)
1MB=1024KB=1024*1024B=1048576B (=2^20 or 2**20 in VFP)
1GB=1024MB=1024*1024KB=1024*1024*1024B=1073741824B (=2^30 or 2**20 in VFP)
1TB=1024GB
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform