C#获取逻辑驱动器文件系统

DriveInfo[] allDrives = DriveInfo.GetDrives();
foreach (DriveInfo d in allDrives)
    {
       textBox2.Text 
= textBox2.Text + d.Name + d.DriveFormat + Environment.NewLine;
    }

 

posted @ 2010-05-30 19:25  wangbin5542  阅读(457)  评论(0编辑  收藏  举报