摘要:
准备 1.簇:要了解文件的大小及占用空间的含义,必须先了解簇的定义。相关信息请看这里。 2.GetDiskFreeSpace:获取指定磁盘的信息,包括磁盘的可用空间(Retrieves information about the specified disk, including the amount of free space on the disk)。参考这里。此方法来自 kernel32.dll。具体调用请看正文。正文 1.调用GetDiskFreeSpace获取磁盘信息。/// <summary>/// Retrieves information about the spe 阅读全文