Attributes Property

Return the attributes for the file.

Syntax

object.Attributes

The object is an expression that evaluates to a PackageFile object. The return value is a combination of one or more bit flags which represent a specific attribute. The following attributes are used:

Constant Description
apFileArchive The file is an archive file. Applications use this attribute to mark files for backup or removal.
apFileHidden The file is hidden. It is not included in an ordinary directory listing.
apFileNormal The file has no other attributes set. This attribute is valid only if used alone.
apFileReadonly The file is read-only. Applications can read the file but cannot write to it or delete it.
apFileSystem The file is part of the operating system or is used exclusively by it.

Remarks

The Attributes property returns the attributes for the file at the time that it was stored in the package.

Example

'
' Determine if the first file in the package has the read-only
' attribute set
'
If (Package1.Files(0).Attributes And apFileReadonly) = 0 Then
    ' The file is not read-only
End If