Skip to content

dos_getdir

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

Displays a Windows "Browse for folder" dialog box. The dos_getdir function is also capable of creating directories.

Syntax

(dos_getdir [title [path [message [T]]]])

Parameters

title

A string containing the dialog box title.

path

A string identifying an existing directory. If nil is specified, the current directory is used.

message

A string containing an optional message.

T

Display a "Make New Folder" button.

Returns

A qualified path to the directory selected by the user if successful.

nil on cancel or on error.

Example

Command: (dos_getdir "Browse for folder" "C:\\Program Files\\AutoCAD 2010\\" "Select a folder to use" T)
"C:\\Program Files\\AutoCAD 2010\\Support\\"

Clone this wiki locally