System.IO.DriveInfo[] drives = System.IO.DriveInfo.GetDrives(); foreach (DriveInfo drive in drives) { if (drive.IsReady) Console.WriteLine(drive.TotalSize); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)