System.Environment.GetLogicalDrives Method

Returns an array of string containing the names of the logical drives on the current computer.

Syntax

public static string[] GetLogicalDrives ()

Returns

An array of strings where each element contains the name of a logical drive. For example, if the computer's hard drive is the first logical drive, the first element returned is "C:\".

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0