dos_dirattrib

返回目录属性, 或按位设置属性.


语法

(dos_dirattrib [pathspec [bits]])

参数

pathspec

欲操作的目录. 路径中可以包含通配符("*" and "?"). 如果未指明路径则假定*.*.

 

bits

用来确定目录属性的位值. 以下为可用的位值:

 

0

普通

1

只读

2

隐藏

4

系统

8

存档

返回

如果成功, 返回包含目录名和属性的关联表.

nil 失败时.

示例

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))