Skip to content

dos_getsecret

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

Retrieves a password string from the AutoCAD command line.

Syntax

(dos_getsecret prompt [T])

Parameters

prompt

A string containing a prompt.

T

The string can contain blanks and the user must terminate it by pressing . Otherwise, entering either a space or terminates the string.

Returns

A string value, if successful.

nil on cancel or on error

Example

Command: (dos_getsecret "Password: ")
"MySecretPassword"

Clone this wiki locally