MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual page 231

For windows 95/98/nt4/2000
Table of Contents

Advertisement

FileName
function FileName(nIndex: Integer): WideString
Returns the name of an existing archive file element (file/directory/volume) by index.
The index value can be from 0 to FileCount-1. The following code illustrates a loop over
the content of the archive looking for a specific file name:
function Main () {
var hsOKInfo = 64;
var app = Application;
var ZIPPro = app.ZIPProvider;
ZIPPro.ZipFile = 'd:\\zipfiles\\test.zip';
// Loop through the contents of the ZIP file
for ( x = 0; x < ZIPPro.FileCount; x++ ) {
if ( ZIPPro.FileName(x) == 'cfabort.vtm' ) {
app.MessageBox( "File found in the
archive.","ZIPProvider", hsOKInfo);
}
}
}
FileSize
function FileSize(nIndex: Integer): Double
Returns the size of an existing archive file element (file/directory/volume) by index.
The index value can be from 0 to FileCount-1.
FileIsVolume
function FileIsVolume(nIndex: Integer): WordBool
Use this function to determine whether a specific element in an archive is a volume
label. The index value can be from 0 to FileCount-1.
239

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents