Repository navigation
dos_dirattrib
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Returns directory attributes, or sets directory attributes to the value described by bits.
(dos_dirattrib [pathspec [bits]])
pathspec
The desired directory or directories. pathspec can contain wildcard characters ("*" and "?"). If pathspec is not supplied, it is assumed to be ..
bits
A bit-coded integer identifying the desired directory attributes to set. Specify more than one directory attribute by adding the following bit values:
| Value | Description |
|---|---|
| 0 | Normal |
| 1 | Read-only |
| 2 | Hidden |
| 4 | System |
| 8 | Archive |
An association list containing the directory names and the attribute bits if successful.
nil on error.
Command: (dos_dirattrib "C:\\Program Files\\AutoCAD 2006\\*.*")
(("Data Links" . 0) ("Drv" . 0) ("en-US" . 0) ("Express" . 0) ("Fonts" . 0) ("Help" . 0) ("Plot Styles" . 0) ("Plotters" . 0) ("Sample" . 0) ("Support" . 0) ("Template" . 0) ("Textures" . 0) ("UserDataCache" . 2) ("WebDepot" . 0) ("WebServices" . 0))
Command: (dos_dirattrib "C:\\Program Files\\AutoCAD 2006\\Sample\\" 1)
(("Sample" . 1))