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
Need help?
Do you have a question about the COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO and is the answer not in the manual?
Questions and answers