Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Available space on another drive
Message
De
12/10/1996 15:56:00
 
 
À
12/10/1996 15:25:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00009891
Message ID:
00009892
Vues:
34
>I posted a question last week about wanted to know if there is a way of getting the available disk space on a drive without changing to that drive first using the DISKSPACE() function.

? "The Disk Space of Drive F is: " + LTRIM(STR(DiskSpc("F:")))

FUNCTION DiskSpc
PARAMETER m_D && Passed Drive letter
m_DefDrive = FULLPATH(CURDIR()) && Store current path
SET DEFAULT TO &m_D && Set to passed Drive letter
m_RetVal = DISKSPACE() && Get the DiskSpace
SET DEFAULT TO &m_DefDrive && Reset to the original path
RETURN m_RetVal && Return the DiskSpace value
Some things are better be left unknown...NOT!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform