space = GetVolumeInfo(vol$, type)
vol$ for the information
specified by type. The following constants are possible for type:
#FREESPACE:
#USEDSPACE:
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.