File_SetTreeAttributes
Description
Section titled “Description”Sets attributes on a directory, and on all subdirectories and files in it
Syntax
Section titled “Syntax”File_SetTreeAttributes(sDir, iAttribute) As Boolean
Parameters
Section titled “Parameters”sDir (String)
Section titled “sDir (String)”Directory name
iAttribute (Integer)
Section titled “iAttribute (Integer)”Attribute to set. See Constants. Use FILE_NORMAL to remove all attributes in the tree.
Remarks
Section titled “Remarks”- The directory must exist. If it doesn’t, the function returns False.
- As with File_SetFileAttributes, a file or directory that doesn’t already have the attribute gets iAttribute as its only attribute.
Example
Section titled “Example”If bStatus Then bStatus = File_SetTreeAttributes("C:\CapaInstaller", FILE_READONLY)Related functions
Section titled “Related functions”File_RemoveFileAttributes File_SetFileAttributes Constants Package Property Variables