GET_DRIVE_TYPE

Use

Retrieves information about the specified drive, i.e. what kind of drive the specified drive is.

Arguments

[IMPORTING] drive TYPE STRING

Drive for which the drive type should be determined.

[CHANGING] drive_type TYPE STRING

Description of the type of drive. If the drive type is unknown, an empty string is returned, otherwise one of the following values:

  • REMOVABLE

    A drive is classified as removable if it can be removed from the computer while the computer is running.

  • FIXED

    A fixed drive cannot be removed during normal operation of the computer

  • REMOTE

    This value is returned for network shares

  • CDROM

    The specified drive is a CD-ROM drive

  • RAMDISK

    This is returned for RAM disks

Exceptions

CNTL_ERROR

Thrown if the GUI is neither Windows nor Java nor HTML GUI or the operation fails.

ERROR_NO_GUI

Currently not used.

NOT_SUPPORTED_BY_GUI

This exception is raised if the GUI is HTML or Java GUI.

BAD_PARAMETER

This exception is thrown if the parameter drive is empty.