Figure out disk space for all local drives.

  • Thread starter Thread starter Mufasa
  • Start date Start date
System.IO.DriveInfo[] local_allDrives =
System.IO.DriveInfo.GetDrives();
foreach (System.IO.DriveInfo local_Drive in local_allDrives)
{

System.Windows.Forms.MessageBox.Show(local_Drive.TotalSize.ToString());

System.Windows.Forms.MessageBox.Show(local_Drive.TotalFreeSpace.ToString());
}


regards
Frank
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top