Question:
Today I downloaded your trial zip ActiveX tool. I need the ability to create directories in the zip file. Will your product do this. I have listed an example of what I need to do below.
Ex. 1. Create directory x (may or may not be on disk)
2. Create Directory y under x (may or may not be on disk)
3. Place file z.txt in y
So the zip file should have the structure "x/y/z.txt"
Can I do this?
Answer:
Yes, here is the VB6 code:
Private Sub Command1_Click()
Dim zip As New ChilkatZip2
zip.UnlockComponent "trial"
zip.NewZip "test.zip"
zip.PathPrefix = "x/y/"
zip.AppendOneFileOrDir "test.txt", 0
zip.WriteZipAndClose
End Sub