login about faq

Hi, I am trying to open a zip file with CkZip on windows. The zip file path has a whitespace in it. Which format is expected by CkZip for whitespaces in windows? Should the whitespaces be escaped?

This fails:

CkZip zipModule;
bool success = zipModule.UnlockComponent(CHILKAT_KEY);
success = zipModule.OpenZip("c:/test/filename with space.zip");


EDIT: it appears the actual error is caused by another reason. I think it is related to some SFX flag in the zip files that cause the failure. All files with SFX flag set to true failed to extract.

alt text Here's the last error log:

    DllDate: Nov 13 2016
    UnlockPrefix: XXXXXXXXX
    Architecture: Little Endian; 32-bit
    Language: Linux C/C++
    VerboseLogging: 0
    Component successfully unlocked using purchased unlock code.
      zipPath: XXXXX.zip
      oemCodePage: 65001
        numCentralDirEntries: 8
        szCentralDir: 527
        posCentralDir: 8447
        Did not find central file header signature.
        index: 0
        filePos: 8447

asked Nov 24 '16 at 09:48

tsotso's gravatar image


edited Nov 27 '16 at 11:33

I tried opening a Zip with spaces in file names without issue (even tried forward slashes like you did and that seems to work even though Windows typically takes backslashes as path separators).

Did you get an error? If so, please post the complete contents of the LastErrorText property immediately after calling the OpenZip method.


answered Nov 24 '16 at 22:30

jpbro's gravatar image

jpbro ♦

SFX isn't a flag - it's a self extracting executable file. It may include ZIPped components, or it may even use a different compression algorithm. Essentially, it's not really a ZIP file, so I don't think you can expect it to be opened/unzipped by the Chilkat library.

See this for more info: http://cknotes.com/about-self-extracting-exes/


answered Nov 27 '16 at 15:01

jpbro's gravatar image

jpbro ♦

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: Nov 24 '16 at 09:48

Seen: 1,607 times

Last updated: Nov 27 '16 at 15:01

powered by OSQA