【问题标题】:c# 2010 code for getting the free space of the HDD [duplicate]c#2010获取硬盘可用空间的代码[重复]
【发布时间】:2011-06-21 04:20:55
【问题描述】:

可能重复:
How do I retrieve disk information in C#?

嗨,伙计们。 我想要一个 c# 2010 中的代码来获取驱动器的可用空间。

【问题讨论】:

  • 没有 C# 2010 这样的东西——你可能是指 C# 4(随 Visual Studio 2010 提供)

标签: c#


【解决方案1】:

您可以使用DriveInfo 并使用属性TotalFreeSpace

【讨论】:

    猜你喜欢
    • 2013-01-26
    • 2016-08-04
    • 2013-12-13
    • 2020-11-08
    • 1970-01-01
    • 2010-11-26
    • 1970-01-01
    • 2023-03-17
    • 2015-10-25
    相关资源
    最近更新 更多