Skip to content

dos_fullpath

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

Converts a partial path to a fully qualified path. Unlike the dos_makepath function, this function can be used with .\ and ..\ in the path.

The dos_fullpath function merges the name of the current drive and directory with the specified file name to determine the full path and file name of the specified file. It also calculates the address of the file name portion of the full path and file name. This function does not verify that the resulting path and file name are valid or that they refer to an existing file on the associated volume.

Syntax

(dos_fullpath path)

Parameters

path

If the path argument specifies a drive (C:, D:, etc.), the current directory of this drive is combined with the path.

Returns

A fully qualified path if successful.

nil on error.

Example

Command: (dos_fullpath "acad.exe")
"C:\\Program Files\\AutoCAD 2006\\acad.exe"

Command: (dos_fullpath "..\\..\\Windows\\win.ini")
"C:\\Windows\\win.ini"

Clone this wiki locally