Skip to content

dos_chdir

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

Changes the current directory to the specified directory. This function can change the current directory on any drive; it cannot be used to change the current drive. Use dos_drive to change the current drive.

Syntax

(dos_chdir path)

Parameters

path

A string containing an existing path.

Returns

A string containing a qualified path to the current directory if successful.

nil on error.

Example

Command: (dos_chdir "\\Program Files\\AutoCAD 2006\\Sample\\")
"C:\\Program Files\\AutoCAD 2006\\Sample\\"

Command: (dos_chdir "..\\Support\\")
"C:\\Program Files\\AutoCAD 2006\\Support\\"

Clone this wiki locally