Environment.GetLogicalDrives Method ()
.NET Framework (current version)
Returns an array of string containing the names of the logical drives on the current computer.
mscorlib (in mscorlib.dll)
static member GetLogicalDrives : unit -> string
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:\".
The following example shows how to display the logical drives of the current computer using the GetLogicalDrives method.
No code example is currently available or this language may not be supported.
Return to top
Available since 1.1