Skip to content

File_SetTreeAttributes

Sets attributes on a directory, and on all subdirectories and files in it

File_SetTreeAttributes(sDir, iAttribute) As Boolean

Directory name

Attribute to set. See Constants. Use FILE_NORMAL to remove all attributes in the tree.

  • 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.
If bStatus Then bStatus = File_SetTreeAttributes("C:\CapaInstaller", FILE_READONLY)

Scripting Guidelines

File_RemoveFileAttributes File_SetFileAttributes Constants Package Property Variables