foreach (DriveInfo insDriveInfo in DriveInfo.GetDrives()) { Console.WriteLine("Sürücü : " + insDriveInfo.Name); Console.WriteLine("Hazır Mı : " + insDriveInfo.IsReady.ToString()); if (insDriveInfo.IsReady) { Console.WriteLine("Etiket : " + insDriveInfo.VolumeLabel); Console.WriteLine("Biçim : " + insDriveInfo.DriveFormat); Console.WriteLine("Tip : " + insDriveInfo.DriveType.ToString()); Console.WriteLine("Root : " + insDriveInfo.RootDirectory.ToString()); Console.WriteLine("Toplam Alan : " + ConvertToGb(insDriveInfo.TotalSize).ToString() + " GB"); Console.WriteLine("Kullanılabilir Boş Alan : " + ConvertToGb(insDriveInfo.AvailableFreeSpace).ToString() + " GB"); Console.WriteLine("Toplam Boş Alan : " + ConvertToGb(insDriveInfo.TotalFreeSpace).ToString() + " GB"); Console.WriteLine(); } } Console.ReadLine(); } static decimal ConvertToGb(long l) { return Math.Round(Convert.ToDecimal(l) / 1024 / 1024 / 1024,2); }