File - Set Attributes

Sets the attributes of a file on the user's system.

Action ID:
Action Category:
Action List Syntax:

137
File
File.SetAttributes (<<FILENAME>>, <<ATTRIBUTE>>)

Settings

Filename

Filename:

The path and filename of the file whose attributes you want to set.

Attributes

This section allows you to specify the attributes of the file on the user’s system.

Read-only

If selected, the file will have the read-only file attribute set. (This is just like doing "attrib +r" in a DOS prompt.)

System

If selected, the file will have the system file attribute set. (This is just like doing "attrib +s" in a DOS prompt.)

Hidden

If selected, the file will have the hidden file attribute set. (This is just like doing "attrib +h" in a DOS prompt.)

Archive

If selected, the file will have the archive file attribute set. (This is just like doing "attrib +a" in a DOS prompt.)

Notes

Error Codes

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1

MSG_ERR_FILE_SET_ATTRIBUTES

MSG_ERR_FILE_SET_ATTRIBUTES
MSG_ERR_FILE_NOT_FOUND
<<FILENAME>>

2

MSG_ERR_FILE_SET_ATTRIBUTES

MSG_ERR_FILE_SET_ATTRIBUTES
MSG_ERR_SET_FILE_ATTRIB_FAIL
<<FILENAME>>
System Error Code

Examples

None