File_SetFileAttributes

Description

Sets specified attribute on file


Syntax

File_SetFileAttributes(sFile, iAttribute, bMustExist) As Boolean


Parameters

sFile (String)

Filename

iAttribute (Integer)

Attribute to set

bMustExist (Boolean)

File must exist


Example

VBScript
If bStatus Then bStatus = File_SetFileAttributes("C:\CapaInstaller.txt", FILE_READONLY, False)

Scripting Guidelines


Related functions

File_RemoveFileAttributes File_SetTreeAttributes