IDirectory.GetLogicalDrives

Syntax

GetLogicalDrives: IStringList;

Description

The GetLogicalDrives method returns the list of logical drives on the current computer.

Example

Sub UserProc;
Var
    Drives: IStringList;
    DriveName: String;
Begin
    Drives := Directory.GetLogicalDrives;
    For Each DriveName In Drives Do
        Debug.WriteLine(DriveName);
    End For;
End Sub UserProc;

After executing the example a list of all logical disks available on the current computer is displayed in the development environment console.

See also:

IDirectory