dos_file

返回文件的详细信息.


语法

(dos_file filename)

参数

filename

文件名.

返回

如果成功, 返回描述文件详细信息的字符串列表. 返回信息如下:

 

filename

文件名称.

size

文件的字节数.

date and time

按AutoCAD的日历格式显示文件的日期和时间.

attributes

表明文件属性的位码. 位码如下:

0 (bit 0)

普通

1 (bit 1)

只读

2 (bit 2)

隐藏

4 (bit 3)

系统

8 (bit 4)

存档

 

nil 失败时.

示例

Command: (dos_file "C:\\Program Files\\AutoCAD 2007\\acad.exe")

("acad.exe" 9.48746e+006 2.00603e+007 8)