System.IO.DriveInfo Drive = new System.IO.DriveInfo(@"c:\");
lblDriveName.Text = Drive.Name;
lblDriveType.Text = Drive.DriveType.ToString();
lblAvailableFreeSpace.Text = Drive.AvailableFreeSpace.ToString();
lblDriveFormat.Text = Drive.DriveFormat;
lblTotalFreeSpace.Text = Drive.TotalFreeSpace.ToString();
lblTotalSize.Text = Drive.TotalSize.ToString();
lblVolumeLabel.Text = Drive.VolumeLabel;
Thursday, February 4, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment