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");

Thanks

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:

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

asked Nov 24 at 09:48

tsotso's gravatar image

tsotso
11

edited Nov 27 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.

link

answered Nov 24 at 22:30

jpbro's gravatar image

jpbro ♦
1.1k2618

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/

link

answered Nov 27 at 15:01

jpbro's gravatar image

jpbro ♦
1.1k2618

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×20
×5

Asked: Nov 24 at 09:48

Seen: 82 times

Last updated: Nov 27 at 15:01

powered by OSQA