Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Free space
Message
From
31/03/2000 20:44:05
 
 
To
31/03/2000 19:16:33
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00353734
Message ID:
00353772
Views:
15
>How can I check for free space a on a specific HD or Removable device?
>
>Thanks in advance for any tips
>

Because of known issues with the implementation of VFP's DISKSPACE() and large drive volumes, it's preferable to use either an API call, or the Scripting.FileSystemObject's Drive subobject to get this information - my preference is to use the FSO's Drive subobject, since it gives both the free disk space and available disk space when the two differ, like when disk quotas are being referenced:

oFSO = CREATEOBJ('Scripting.FileSystemObject')
oDrive = oFSO.GetDrive("J:")
? oDrive.AvailableSpace, oDrive.FreeSpace

See the WSH docs for the full details.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform