Xbasic
WIN_DISK_INFO Function
Syntax
Result_Flag as L = win_disk_info(P diskinfo [,C computer ])
Arguments
- Result_Flag
.T. = Success .F. = Failure
- diskinfo
An array to hold the data about the computer's disks.
- computer
Optional. Default = "." (local computer). Specifies the computer to examine.
Description
The WIN_DISK_INFO() function returns information about a computer's disks.
Example
dim x[0] as p ? win_diskinfo(x) = .T. ? x.size() = 14 ? x[1] = Access = Availability = BlockSize = Caption = "A:" Compressed = ConfigManagerErrorCode = ConfigManagerUserConfig = CreationClassName = "Win32_LogicalDisk" Description = "3 1/2 Inch Floppy Drive" DeviceID = "A:" DriveType = 2 ErrorCleared = ErrorDescription = ErrorMethodology = FileSystem = FreeSpace = InstallDate = LastErrorCode = MaximumComponentLength = MediaType = 5 Name = "A:" NumberOfBlocks = PNPDeviceID = PowerManagementCapabilities = PowerManagementSupported = ProviderName = Purpose = QuotasDisabled = QuotasIncomplete = QuotasRebuilding = Size = Status = StatusInfo = SupportsDiskQuotas = SupportsFileBasedCompression = SystemCreationClassName = "Win32_ComputerSystem" SystemName = "MYCOMPUTER" VolumeDirty = VolumeName = VolumeSerialNumber = for each y in x ? y.name next A: B: C: D: E: F: H: P: Q: S: T: W: X: Z:
Limitations
This function does not work with Windows 98 and Windows ME.
See Also