For Programmers: Free Programming Magazines  


Home > Archive > Compression > May 2004 > CAB file offset









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CAB file offset
Martin St.

2004-05-12, 9:28 pm

Hi,

I'm trying to extract a several files from a cabinet file without MS
cabinet.dll.

Is there any way to compute the compressed offset of a certain file in a
folder of a cabinet file so that I don't have to extract all prior files of
that folder?

Thanks, Martin
Stuart Caie

2004-05-14, 1:30 pm

Martin St. wrote:
> Hi,
>
> I'm trying to extract a several files from a cabinet file without MS
> cabinet.dll.
>
> Is there any way to compute the compressed offset of a certain file in a
> folder of a cabinet file so that I don't have to extract all prior files of
> that folder?


No. Use more folders. Use one per file if you like. Find the sweet spot
between compression lost and improvement in random access time. Or you could
modify something like libmspack to store all decoded bytes as it works,
rather than pass them on and discard.

Regards
Stuart
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com