FileAttrSet

Sets file attributes.

Syntax:

FileAttrSet (file-list, settings)

Parameters:

(s) file-list a delimited list of files. May contain wildcards. (example: "*.jpg|*.bmp")

(s) settings new attribute settings for those file(s).

Returns:

(i) always 1.

 

The attribute string consists of one or more of the following characters (an upper case letter turns the specified attribute ON, a lower case letter turns it OFF):

Symbol Meaning

Symbol Meaning

R read only ON
A archive ON
S system ON
H hidden ON

r read only OFF
a archive OFF
s system OFF
h hidden OFF

 

File list may contain * and ? wildcards.

This function supports extended-length path names.

Examples:

testfile1=StrCat(DirWindows(0),"win.ini")
FileAttrSet(testfile1, "rAsh")
Message("FileAttrSet","File Attributes Set")
See Also:

FileAttrGet, FileAttrSetEx, FileAttrGetEx, FileTimeTouch