Page tree
Skip to end of metadata
Go to start of metadata

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

  • No labels