login about faq

I'm trying the CHILKAT ZIP but I have a question? How can I change the directory where the compressed file will be created?

asked Oct 23 '12 at 15:34

chilkat's gravatar image

chilkat ♦♦
8.6k308344394


If creating a completely new zip archive, then pass the absolute or relative directory path of the zip archive that is to be created to the NewZip method:

zip.NewZip("c:/temp/abc.zip");

If opening an existing zip archive, adding files, and re-writing, then update the zip.FileName to the path of the .zip that is to be written prior to calling WriteZip. (This part of the API was poorly designed more than 10 years ago. It would've been better to simply pass the file path to the WriteZip method.)

link

answered Oct 23 '12 at 15:40

chilkat's gravatar image

chilkat ♦♦
8.6k308344394

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:

×52

Asked: Oct 23 '12 at 15:34

Seen: 441 times

Last updated: Oct 23 '12 at 15:40

powered by OSQA