
Gets directory attributes.
DirAttrGet( [d:]path )
(s) [d:]path directory pathname whose attributes you want to determine.
(s) the attributes of the specified directory pathname.
Returns attributes for the specified directory, in a string of the form "RASH". This string is composed of four individual attribute characters, as follows:
|
Char |
Symbol |
Meaning |
|
R |
Read-only |
ON |
|
A |
Archive |
ON |
|
S |
System |
ON |
|
H |
Hidden |
ON |
A hyphen in any of these positions indicates that the specified attribute is OFF. For example, the string "-A-H" indicates a directory which has the Archive and Hidden attributes set.
This function supports extended-length path names.
dir = "c:\temp"
attr = DirAttrGet(dir)
Message("Attributes of Directory, %dir%", attr)
DirAttrSet, DirAttrGetEx, FileAttrGet, FileAttrSet, FileTimeGet, DirInfoToArray