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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-20
  • 2021-07-19
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案