Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Altering big table - Not enough disk space
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00475071
Message ID:
00475316
Vues:
31
>>>Well, I've just tried on my Win'95 at work.
>>>SYS(2020,"D") returned 2147221504,
>>>diskspace("D") returned 2147155968.
>>>
>>>D is my local 20GB drive, and it has 9,8GB free.
>>>
>>>George GetTotalSpace("D:\") and GetFreeSpace("D:\") both returned correct result. So, I guess, for the old OS these VFP functions are not reliable.
>>
>>I assume that these functions are based on my FAQ, so they should work correctly.
>
>Yes, I copied your FAQ and gave them two separate names GetFreeSpace and GetTotalSpace.
>
>The problem is that VFP calls GetDiskFreeSpace() rather than GetDiskFreeSpaceEx() to get these values. The latter function was available in the original Win95 release. If I recall correctly, VFP 7.0 fixes this problem, using a method similar to the one shown in the FAQ.
>
>Thanks again for this code.

You're welcome.

What I didn't mention was that GetDiskFreeSpaceEx() was available until OSR2 (I think).
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform