IDirectory.GetLogicalDrives

Syntax

GetLogicalDrives: IStringList;

Description

The GetLogicalDrives method returns a list of logical drives on a 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 this example, a list of all logical disks available on a current computer is displayed in development environment console.

See also:

IDirectory