Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Available space on another drive
Message
From
12/10/1996 15:56:00
 
 
To
12/10/1996 15:25:03
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00009891
Message ID:
00009892
Views:
35
>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!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform