DriveInfo[] dinfo = DriveInfo.GetDrives(); try { foreach (var df in dinfo) { Console.Write(df.VolumeLabel); Console.WriteLine(" : " + df.Name); } } catch { } Local Disk(C:)读出来是空,soft(D:)却能读出来soft。同样WMI查出来也是空
- 2 回答
- 0 关注
- 528 浏览
添加回答
举报
0/150
提交
取消