How do I retrieve disk information in C#?

前端 未结 6 1837
暖寄归人
暖寄归人 2020-11-27 18:25

I would like to access information on the logical drives on my computer using C#. How should I accomplish this? Thanks!

6条回答
  •  无人及你
    2020-11-27 19:04

    Use System.IO.DriveInfo class http://msdn.microsoft.com/en-us/library/system.io.driveinfo.aspx

提交回复
热议问题