DirAttrGet

Gets directory attributes.

Syntax:

DirAttrGet( [d:]path )

Parameters:

(s) [d:]path directory pathname whose attributes you want to determine.

Returns:

(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.

 

Example:


dir = "c:\temp"
attr = DirAttrGet(dir)
Message("Attributes of Directory, %dir%", attr)
See Also:

DirAttrSet, DirAttrGetEx, FileAttrGet, FileAttrSet, FileTimeGet, DirInfoToArray