User Guide
274 Chapter 14 Scripting the Visual Tools Object Model
FileIsReadOnly
Syntax FileIsReadOnly(nIndex: Integer): WordBool;
Description Boolean. Use this function to determine whether a specific element in an archive is
read-only. The
index value can be from 0 to FileCount-1.
FileIsHidden
Syntax FileIsHidden(nIndex: Integer): WordBool;
Description Boolean. Use this function to determine whether a specific element in an archive is a
hidden file. The
index value can be from 0 to FileCount-1.
FileIsSystem
Syntax FileIsSystem(nIndex: Integer): WordBool;
Description Boolean. Use this function to determine whether a specific element in an archive is a
system file. The
index value can be from 0 to FileCount-1.
FileIsVolume
Syntax FileIsVolume(nIndex: Integer): WordBool;
Description Boolean. 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.
FileName
Syntax FileName(nIndex: Integer): WideString;
Description Returns the name of an existing archive file element (file/directory/volume) by
index. The
index value can be from 0 to FileCount-1.
Example
Sample FileName script
//**********************************************//
// This 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’;