Name
GetVolumeInfo -- get space information about a volume
Synopsis
space = GetVolumeInfo(vol$, type)
Function
This function queries the volume specified by vol$ for the information specified by type. The following constants are possible for type:

#FREESPACE:
Returns the free space of the volume

#USEDSPACE:
Returns the used space of the volume

Inputs
vol$
name of a DOS volume
type
one of the constants as listed above
Results
info
free/used space of the volume
Example
space = GetVolumeInfo("SYS:",#FREESPACE)
Print(space, "bytes are free on SYS:!")
The above code returns the free space on your SYS: volume on AmigaOS systems.

Show TOC