File\_SetFileAttributes
Description
Section titled “Description”Sets specified attribute on file
Syntax
Section titled “Syntax”File_SetFileAttributes(sFile, iAttribute, bMustExist) As Boolean
Parameters
Section titled “Parameters”sFile (String)
Filename
iAttribute (Integer)
Constants to set
bMustExist (Boolean)
File must exist
Example
Section titled “Example”VBScript
Section titled “VBScript”If bStatus Then bStatus = File_SetFileAttributes("C:\CapaInstaller.txt", FILE_READONLY, False)Related functions
Section titled “Related functions”File_RemoveFileAttributes File_SetTreeAttributes