请问怎样读取本地磁盘的大小及可用空间????,谢谢!!

解决方案 »

  1.   

    [DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)]
    internal static extern bool GetDiskFreeSpaceEx(string drive, out long freeBytesForUser, out long totalBytes, out long freeBytes);
     
    用法见:
    http://support.microsoft.com/default.aspx?scid=kb;en-us;225144
    和Platform SDK
      

  2.   

    明白了,谢谢!! (Sunmast(速马/MVP))