piter
New Member
Posts: 4
|
Post by piter on Mar 2, 2004 5:19:13 GMT -5
Hello,
I have been testing vclzip componet and I wonder if it's possible to compress files from different drives with full path. For example: I'd like to compress files C:\test.txt, C:\TEMP\help.txt and D:\TEMP\help.txt, D:\test.txt and then decompress them to the same destination folders (drives). Is it possible? I'll be very appreciate for any source code example.
Greetings, Piotr
-- Delphi 5 Standard
|
|
|
Post by Kevin on Mar 2, 2004 8:20:19 GMT -5
It's possible, but then the resulting archive is no longer completely pkzip compliant. The pkzip standard does not allow for keeping volume information but VCLZip does. If you set the StoreVolumes property to True, then the full path along with the volume itself will be stored, allowing exactly what you are asking for.
However, how another zip utility will handle an archive with this information in it is unpredictable. But, VCLZip will handle it.
Kevin
|
|
piter
New Member
Posts: 4
|
Post by piter on Mar 2, 2004 8:44:56 GMT -5
Hello,
I think it doesn't matter any other program doesn't support vclzip format file.
Do I have to set any extra parameter to decompress files with full path. I mean for example: extracting C:\test.txt or D:\TEMP\help.txt exactly to C:\test.txt D:\TEMP\help.txt (C:\, D:\TEMP).
Piotr
|
|
|
Post by Kevin on Mar 2, 2004 14:38:32 GMT -5
It's been awhile since I've used that feature but I believe if you leave the DestDir property blank, and set RecreateDirs to True, it should work like you want it to.
Kevin
|
|
piter
New Member
Posts: 4
|
Post by piter on Mar 3, 2004 2:36:31 GMT -5
Thanks Kevin
Piotr
|
|