请问如何获取Windows文件属性中“占用空间”,注意不是文件大小。
紧急!请高手帮忙!谢谢!

解决方案 »

  1.   

    判断分区是FAT16、FAT32、还是NTFS,根据簇大小和文件的大小来获取。
      

  2.   

    The GetFileSize function retrieves the uncompressed size of a file. Use the GetCompressedFileSize function to obtain the compressed size of a file.http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getfilesize.asphttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/getcompressedfilesize.asp
      

  3.   

    GetCompressedFileSize可以获取文件占用的磁盘大小
      

  4.   

    参考  liangqingzhi(老之) 的意见,看这个是不是你要的??http://www.koders.com/delphi/fid7BEEF0E9A86A3B2285DE36DB4236AF979471D53A.aspx?s=ShellExecute+SE_ERR_NOASSOC