Property |
Description |
CreateNew
|
This
is the flag used to inform AdvZIP component whether
to create new zip file in case zip file already exists.
Valid values are
TRUE (default) if this flag is set as
TRUE then component will always create new zip file
in case file already exists
FALSE if it is set as FALSE
then component will not create new file, will add to
existing zip file in case file already exists
Example (ASP):
<% Obj.CreateNew
= false %>
Example (ColdFusion):
<CFSET Obj.CreateNew = false>
|
ErrorReason |
Reports
any error that occurred during the request.
Example (ASP):
<% if Obj.IsError = 1 then
Response.Write
Obj.ErrorReason
else
No Error
Occurred
end if %>
Example (ColdFusion):
<CFIF #Obj.IsError# EQ 1>
<CFOUTPUT>#Obj.ErrorReason#</CFOUTPUT>
<CFELSE>
<CFOUTPUT>No
Error Occurred</CFOUTPUT>
</CFIF>
|
IsError
|
Returns
1 if any error occurred during the request otherwise
0.
Example (ASP):
<% if Obj.IsError = 1 then
Response.Write
Obj.ErrorReason
else
No Error
Occurred
end if %>
Example (ColdFusion):
<CFIF #Obj.IsError# EQ 1>
<CFOUTPUT>#Obj.ErrorReason#</CFOUTPUT>
<CFELSE>
<CFOUTPUT>No
Error Occurred</CFOUTPUT>
</CFIF>
|
NameConflict |
This
flag is used to handle the situation if the file name
conflicts with the name of another file that already
exists in the directory. Valid values are
MakeUnique component will save file with
unique file name if file with same name already exists
and will return its new name
OverWrite (default)
component will overwrite to existing file if file with
same name already exists
Example (ASP):
<% Obj.NameConflict
= "makeunique" %>
Example (ColdFusion):
<CFSET Obj.NameConflict = "makeunique">
|
Password
|
This
property is used to specify password to handle password
protected archives. If not specified then no encryption
or decryption takes place.
Example (ASP):
<% Obj.Password
= "my password" %>
Example (ColdFusion):
<CFSET Obj.Password = "my password">
|
SubFolders |
This
flag is used to inform AdvZIP component whether to add
subfolders automatically along with files. Valid values
are
TRUE (default) if this value is set as
TRUE then component will add subfolders to zip file
automatically
FALSE if this value is set
as FALSE then component will zip files only and will
ignore all subfolders
Example (ASP):
<% Obj.SubFolders
= false %>
Example (ColdFusion):
<CFSET Obj.SubFolders = false>
|
TargetPath |
This
is target folder path where all files will be unzipped.
Example (ASP):
<% Obj.TargetPath
= "c:\myfolder" %>
Example (ColdFusion):
<CFSET Obj.TargetPath = "c:\myfolder">
|
UsePath
|
This
flag is used to inform AdvZIP component whether to zip
given files using their complete path or using their
names only. This property is ignored in case of adding
folders to zip. Valid values are
TRUE (default) in case of TRUE component
will zip files using their complete path
FALSE if it is set as FALSE then component
will zip files using their names only
Example (ASP):
<% Obj.UsePath =
false %>
Example (ColdFusion):
<CFSET Obj.UsePath = false>
|
ZipFile
|
This
is the zip file on which all operations will be performed.
Example (ASP):
<% Obj.ZipFile =
"c:\myfolder\myfile.zip" %>
Example (ColdFusion):
<CFSET Obj.ZipFile = "c:\myfolder\myfile.zip">
|