ZIPProvider object
299
ZIPComment
Syntax
ZIPComment: OleVariant
Description
Sets and gets the comment for the archive file. Use this property to read a comment
of an existing archive file, or set the comment for a new archive file that you created.
ZIPFile
Syntax
ZIPFile: OleVariant
Description
Sets and gets the archive file path against which the operation is to be applied. To
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
Add
,
Delete
, or
Extract
methods on the file.
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
to specify whether directory information should be stored in the
archive. Use
bIncludeHiddenFiles
and
bIncludeVolumeLabels
to restrict the
inclusion of hidden files or volume labels. Do not set the
bIncludeVolumeLabels
parameter to
True
unless you specify the drive letter as the first element in the
Files
parameter. The
Files
parameter may contain multiple elements separated by line
Summary of Contents for HOMESITE
Page 11: ...Contents xi Table of CommandID values 310 Table of SettingID values 314 Glossary 323...
Page 12: ...xii Contents...
Page 20: ...xx About This Book...
Page 28: ...8 Chapter 1 Setting Up the Product...
Page 70: ...50 Chapter 4 Managing Files...
Page 88: ...68 Chapter 5 Writing Code and Web Content...
Page 116: ...96 Chapter 6 Editing Pages...
Page 148: ...128 Chapter 7 Using Web Development Languages...
Page 190: ...170 Chapter 11 Deploying Files...
Page 210: ...190 Chapter 12 Testing and Maintaining Web Pages...
Page 216: ...196 Chapter 13 Extending the Help System...
Page 350: ...330 Glossary...
Page 358: ...338 Index...