Methods - MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual

Table of Contents

Advertisement

ZIPProvider Object
ZIPComment
Syntax
ZIPComment: OleVariant
Sets and gets the comment for the archive file. Use this property to read a comment
Description
of an existing archive file, or set the comment for a new archive file that you created.
ZIPFile
ZIPFile: OleVariant
Syntax
Sets and gets the archive file path against which the operation is to be applied. To
Description
create a new archive file set this property to the file path of the new file and then call
the Add method to populate the file with content. To add, delete, or extract files from
an existing archive file, set the property to the file path of the file and call
or
Extract
Sample ZIPFile script
Example
//***********************************************//
// The following example uses the ZIPFile property to extract a file
// (somefile.exe) from another file (d:\\downloads\\test.zip):
//************************************************//
function Main () {
var hsOKInfo = 64;
var app = Application;
var ZIPPro = app.ZIPProvider;
ZIPPro.ExtractionDir = 'd:\\ExtractHere\\'; ZIPPro.ZipFile =
'd:\\downloads\\test.zip';
var ResultCode = ZIPPro.Extract('somefile.exe');
app.MessageBox( "Return Code :" + ResultCode ,"ZIPProvider",
hsOKInfo);
}

Methods

Add
Syntax
Add(Files: OleVariant; bRecurse, bIncludeDirs, bIncludeHiddenFiles, bIn-
cludeVolumeLabels: WordBool): Integer;
Description
Boolean. Adds files to an archive. Use the Files parameter to narrow down the group
of files to add. You can specify a single file, a set of files delimited by line breaks, or an
entire directory using wildcards. Use the bRecurse parameter to add subfolders. Use
bIncludeDirs
archive. Use
inclusion of hidden files or volume labels. Do not set the
parameter to
parameter. The
methods on the file.
to specify whether directory information should be stored in the
and
bIncludeHiddenFiles
unless you specify the drive letter as the first element in the
True
parameter may contain multiple elements separated by line
Files
bIncludeVolumeLabels
bIncludeVolumeLabels
271
,
,
Add
Delete
to restrict the
Files

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents