PC Review


Reply
Thread Tools Rate Thread

Compressed File Size

 
 
Ron Clarke
Guest
Posts: n/a
 
      20th Feb 2004
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
(E-Mail Removed)


 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      20th Feb 2004
I'm affraid you will have to PInvoke "GetCompressedFileSize ".

Willy.

"Ron Clarke" <(E-Mail Removed)> wrote in message
news:OHIF2H%(E-Mail Removed)...
> 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
> (E-Mail Removed)
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No Compressed Folder (zip file) size in Explorer status bar. =?Utf-8?B?QW5kcmVz?= Windows XP Configuration 0 14th Mar 2006 04:07 AM
Re: urgent - file compressed in size on it's own JB Microsoft Access 8 16th Sep 2004 09:57 PM
urgent - file compressed in size on it's own =?Utf-8?B?S2F0ZQ==?= Microsoft Access 0 16th Sep 2004 04:59 PM
compressed ntfs volume - file size limit?? Brian Gregory [UK] Windows XP General 5 1st May 2004 10:30 PM
Compressed file size is bigger then uncompressed file size on cluster J.Kulk Microsoft Windows 2000 File System 0 3rd Dec 2003 08:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:31 PM.