Mega Code Archive

 
Categories / C# / Development Class
 

Get the names of the logical drives on the current computer

using System; class Sample  {     public static void Main()      {       String[] drives = Environment.GetLogicalDrives();       Console.WriteLine("GetLogicalDrives: {0}", String.Join(", ", drives));     } }