login about faq

I am using of the Zip2 ActiveX library in Visual FoxPro 9. For some reason, I cannot set the AppendFromDir and PathPrefix properties. Whatever I set them to, they are being ignored. I am using a number of other libraries without any problems but this is my first time with this library. Any ideas please?

Here is my code:

loZip = CreateObject('Chilkat.Zip2')
loZip.UnlockComponent("Anything for 30-day trial")
loZip.PathPrefix = "z_pdf/"
loZip.AppendFromDir = "d:/data"

Here are details from the error log produced:

FilePattern: z_pdf/*
AppendFromDir: .
BaseDir: C:\Program Files (x86)\Microsoft Visual FoxPro 9\z_pdf\
InzipBase: z_pdf/
FilenamePart: *
IsSpecificFile: 0
recurse: 1
saveExtraPath: 0
archiveOnly: 0
includeHidden: 1
includeSystem: 1
ignoreAccessDenied: 1
filePath: \\?\C:\Program Files (x86)\Microsoft Visual FoxPro 9\z_pdf\*
filePath2: C:\Program Files (x86)\Microsoft Visual FoxPro 9\z_pdf\*
FindFirst on sub-directory failed.
dir: C:\Program Files (x86)\Microsoft Visual FoxPro 9\z_pdf\*
winError: The system cannot find the path specified.
Failed to add files, source directory may not exist..

--AppendFilesEx --ChilkatLog

asked Aug 17 '13 at 12:26

Batfink91's gravatar image


The LastErrorText you provided does not seem to match with your code fragment. In the LastErrorText, the PathPrefix is shown as being empty:

FilePattern: z_pdf/
AppendFromDir: .
BaseDir: C:Program Files (x86)Microsoft Visual FoxPro 9z_pdf
InzipBase: z_pdf/
IsSpecificFile: 0
recurse: 1
I tested it, and my LastErrorText looks like this:
    FilePattern: z_pdf/*
    AppendFromDir: c:/temp
    PathPrefix: z_pdf/
    BaseDir: c:tempz_pdf
    InzipBase: z_pdfz_pdf


answered Aug 19 '13 at 12:15

chilkat's gravatar image

chilkat ♦♦

That's the issue I am having. The error log is definitely produced by that code. Although I am setting in code the properties such as PathPrefix, they are not being registered but seem to be ignored.


answered Aug 19 '13 at 18:23

Batfink91's gravatar image


Hi, Any ideas on this? It is driving me up the wall. Just to give a bit more information, if I set loZip.DiscardPaths = 1, the pathprefix is used. However, all the paths for the recursed files are lost so this does not really help. If you need any further information from me then please let me know. You help in getting a solution would be most appreciated.


answered Sep 09 '13 at 08:39

Batfink91's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Aug 17 '13 at 12:26

Seen: 1,211 times

Last updated: Sep 09 '13 at 08:39

powered by OSQA