-
Info-ZIP probs
Hi, I'm having some difficulties trying to zip functionality to one of my programs. The code Ive been using is replicated in a few places ; Details
Code:
Dim oZip as CGZipFiles
set oZip = new CGZipFiles
oZip.ZipFileName = "\MyZip.Zip"
oZip.AddFile "c:\mystuff\myfiles\*.*"
oZip.AddFile "c:\mystuff\mymedia\*.wav"
If oZip.MakeZipFile <> 0 then
MsgBox oZip.GetLastMessage
End If
set oZip = nothing
The problem is when i zip up any files they retain their original directory structure inside the zip file, any folders they were inside get zipped up as well.
Ive seen many people complaining about this problem but i havent seen a working solution yet.
I got hold of the source code for the 'CGZipLibrary.dll and tried changing this line;
Code:
ZOPT.fJunkDir = 1 ' 1 If Junking Directory Names
but it hasn't made any difference.
How can i just zip the files not the directories they are contained in?
Thanks..
-
Re: Info-ZIP probs
Here is a whole page of tutorials on using the InfoZip DLLs.
http://datacompression.info/InfoZip.shtml
Good luck.