Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 583
Product
Archive
Version
1.0.7.8
Title
What are the archive types that SoftArtisans Archive supports?
Solution
There are two types of archives supported but three possible parameters for Archive's ArchiveType property. Zip and Cab are the supported types specified by parameters '1' and '2', respectively. The third parameter '3' preserves directory structure for both creating and extracting zip archives.


ArchiveType Values
  1. Zip
    If ArchiveType is set to 1, Archive can preserve directory structure when extracting a Zip file, but not when creating a Zip file.
  2. Cab
    If ArchiveType is set to 2, Archive can preserve directory structure both when extracting and when creating a Cab file.
  3. Zip (Preserve Directory)
    If ArchiveType is set to 3, Archive can preserve directory structure both when extracting and when creating a Zip file.

For path information to be preserved in ArchiveType 2 or 3, do two additional things:
  1. When calling the AddFile method, set its second parameter to True. This specifies that any directories or folders are recursively added to the archive. (The default is False.)
  2. Set the property PreservePath to True
Created : 5/16/2003 4:58:35 PM (last modified : 5/16/2003 4:58:32 PM)
Rate this article!
 
Comments