测试代码:
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace DriveInfoHelper
{
class Program
{
static void Main(string[] args)
{
DriveInfo[] drives = DriveInfo.GetDrives();
Console.WriteLine("驱动器名/t类型/t格式/t总共空间/t可用空间");
foreach(DriveInfo di in drives)
{
Console.WriteLine(string.Format("{0}/t/t{1}/t{2}/t{3}/t{4}",di.Name,di.Driv