System.IOUtils.TDirectory.GetLogicalDrives
Delphi
class function GetLogicalDrives: TStringDynArray; static;
C++
static System::TStringDynArray __fastcall GetLogicalDrives();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TDirectory |
Description
Returns a list of all logical drives present on this computer.
Use GetLogicalDrives to get a list of all logical drives present on this computer. GetLogicalDrives returns a dynamic array of strings in which each element is a string that identifies a logical drive.
Note: GetLogicalDrives only returns a valid result on the Windows platform. On POSIX, it returns an empty array.