System.IOUtils.TDirectory.GetLogicalDrives

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

class function GetLogicalDrives: TStringDynArray; static;

C++

static System::DynamicArray<System::UnicodeString> __fastcall GetLogicalDrives();

プロパティ

種類 可視性 ソース ユニット
function public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TDirectory


説明

このコンピュータ上に存在するすべての論理ドライブのリストを返します。

GetLogicalDrives を使用して、このコンピューター上に存在するすべての論理ドライブのリストを取得します。GetLogicalDrives は、各要素が論理ドライブを識別する文字列である文字列の動的配列を返します。

メモ: GetLogicalDrives は、Windows プラットフォームで有効な結果のみを返します。POSIX では、空の配列を返します。

関連項目