DirAttrSet

Sets directory attributes.

Syntax:

DirAttrSet(dir-list, settings)

Parameters:

(s) dir-list a tab or vertical bar delimited list of one or more sub-directory names.

(s) settings new attribute settings for the directories.

Returns:

(i) always 1.

 

Note: DirAttrSet does not accept wildcards.

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

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

 

This function supports extended-length path names.

Example:


DirAttrSet("c:\windows\temp", "rASh")
Message("DirAttrSet","Directory attributes set.")
See Also:

DirAttrGet, FileAttrGet, FileAttrSet , FileTimeGet, FileTimeTouch