System.IO.DriveInfo[] disk = System.IO.DriveInfo.GetDrives();
            foreach (System.IO.DriveInfo di in disk)
            {
                this.listBox1.Items.Add(di.Name);
            }

得到的结果c:\

d:\

f:\

g:\

posted on 2012-04-28 10:58  swarb  阅读(154)  评论(0编辑  收藏  举报