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 2010-03-17 16:07 阅读(1) 所属分类: