Disk

DiskInfo(Drive,TotalBytes,FreeBytes)

Description Get total and free space for a specified disk.
Arguments
[in] DriveThe root path of a volume, i.e. c:\. This can also contain a directory.
[out] TotalBytesReturns the amount of space on the volume, in megabytes.
[out] FreeBytesReturns the amount of free space on the volume, in megabytes.
Return Value Any value other than zero indicates an error.
Example See {installation directory}\Checks\VBScript\DiskFree.vbs

GetDrives(Drives,DriveType,NumItems)

Description The function will return an array of drives and their type.
Arguments
[in] DrivesAn array, starting at 1, containing strings listing all drives attached to the computer.
[out] DriveTypeAn array, starting at 1, containing strings describing the drive. Values could be:

  • UNKNOWN
  • NO ROOT DIR
  • REMOVABLE
  • FIXED
  • REMOTE
  • CDROM
  • RAMDISK
[out] NumItemsThe number of drives located
Return Value Any value other than zero indicates an error.
Example See {installation directory}\Checks\VBScript\DiskFree.vbs

Copyright (c) Warren Flemmer 2006www.net-probe.com