Skip to content

dos_file

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns detailed information on a file.

Syntax

(dos_file filename)

Parameters

filename

The source filename.

Returns

A list describing the file's details if successful. The information returned is as follows:

Element Description
0 The filename.
1 The file size in bytes.
2 The file date and time in AutoCAD calendar date format.
3 A bit-coded integer identifying the file's attributes. The bit values are as follows:
Value Description
0 (bit 0) Normal
1 (bit 1) Read-only
2 (bit 2) Hidden
4 (bit 3) System
8 (bit 4) Archive

nil on error.

Example

Command: (dos_file "C:\\Program Files\\AutoCAD 2007\\acad.exe")
("acad.exe" 9.48746e+006 2.00603e+007 8)

Clone this wiki locally