Skip to main content
Version: Next

VOLUME LIST

VOLUME LIST ( volumes )

ParameterTypeDescription
volumesString array🡘Names of the volumes currently mounted

Description

The VOLUME LIST command populates the text array volumes with the names of the volumes currently defined (Windows) or mounted (Macintosh) on your machine.

  • On Macintosh, it returns the list of the volumes visible at the Finder level. Only the names of the volumes are returned (for example "MacHD", "BootCamp", etc.).
  • On Windows, it returns the list of the volumes currently defined whether or not each volume is physically present (i.e. the volume E:\ will be returned whether or not a CD or DVD is actually present in the drive). The names of the volumes are followed by the folder separator character ("C:\").

Example

Using a scrollable area named atVolumes you want to display the list of the volumes defined or mounted on your machine, you write:

 Case of
    :(Form event code=On Load)
       ARRAY TEXT(atVolumes;0)
       VOLUME LIST(atVolumes)
 
  //...
 End case

See also

DOCUMENT LIST
FOLDER LIST
VOLUME ATTRIBUTES