To get name of all Logical Drives.

Gopesh9
Posted by Gopesh9 under C# category on | Points: 40 | Views : 825
Here is a small code snippet which gives you all the names of Logical Drives.

foreach (string driveName in Directory.GetLogicalDrives())
{
Console.WriteLine(driveName);
}

Comments or Responses

Login to post response