469,647 Members | 1,700 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,647 developers. It's quick & easy.

Compressed File Size

Does anyone know how to get the compressed size of a file on disk?
FileInfo.Length gives the uncompressed size of a file, but I need to find
the amount of disk space taken up by files in compressed directories
(Windows XP). Getting the "compressed" attribute is available, but how does
one get the compressed size?

Thanks in advance.

--
Ron Clarke
ro********@hp.com
Jul 21 '05 #1
1 1506
I'm affraid you will have to PInvoke "GetCompressedFileSize ".

Willy.

"Ron Clarke" <ro********@hp.com> wrote in message
news:OH****************@TK2MSFTNGP12.phx.gbl...
Does anyone know how to get the compressed size of a file on disk?
FileInfo.Length gives the uncompressed size of a file, but I need to find
the amount of disk space taken up by files in compressed directories
(Windows XP). Getting the "compressed" attribute is available, but how
does
one get the compressed size?

Thanks in advance.

--
Ron Clarke
ro********@hp.com

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Norman Barker | last post: by
4 posts views Thread by Pavel | last post: by
1 post views Thread by Ron Clarke | last post: by
3 posts views Thread by Samuel | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.