login about faq

I would like a new method that would allow you to add a file to the zip but also specify a different file name. For example I have a file called "abc_20130212.dbf" and when I add it to the zip I would like to be able to change the name in zip file to "abc.dbf" and that would then be the name it has when extracted.

Currently I do this using the AppendData method which requires an extra step of converting the file to data first then adding it to the zip. I would just like to be able to do this in one step and avoid the converting to data step.

asked Mar 01 '13 at 10:40

chilkat's gravatar image

chilkat ♦♦

No new feature is necessary.

After entries have been added to the Chilkat.Zip object via any of the Append* methods, each entry can be retrieved and the Chilkat.ZipEntry.FileName property may be changed prior to writing the .zip. The Chilkat.ZipEntry still references the file in the filesystem that is to be included in the .zip when WriteZip* is called, but the filename used within the .zip will be the current value of the ZipEntry.FileName property.


answered Mar 01 '13 at 10:45

chilkat's gravatar image

chilkat ♦♦

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: Mar 01 '13 at 10:40

Seen: 1,289 times

Last updated: Mar 01 '13 at 10:45

powered by OSQA