Skip to content

dos_fileinfo

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

Returns a file's version information. This is information about a file that you see if you right-click on a file, in Windows Explorer, and pick Properties and then pick Details.

Syntax

(dos_fileinfo filename)

Parameters

filename

The filename of either an executable (EXE) or a dynamic link library (DLL) file.

Returns

A list describing the file's version information if successful. Note, a developer is not required to fill in all fields. Thus, some items in the list may be empty strings.

The information returned is as follows:

Element Description
0 File Version (List)
1 Product Version (List)
2 Comments
3 Company Name
4 File Description
5 File Version
6 Internal Name
7 Legal Copyright
8 Legal Trademarks
9 Original Filename
10 Private Build
11 Product Name
12 Product Version
13 Special Build

nil on error.

Example

Command: (dos_fileinfo "acad.exe")
((24 0 215 0) (18 0 215 0) "" "Autodesk, Inc." "AutoCAD Application" "R18.0.215.0.0" "AutoCAD" "Copyright (c) 1982-2009 by Autodesk, Inc." "" "ACAD.EXE" "" "AutoCAD" "R18.0.215.0.0" "")

Clone this wiki locally