LEGACYCODESEARCH (System Variable)

Controls whether searching for executable files includes the folder from which the program is started.

Type:Integer
Saved in:Registry
Initial value:0, may be locked by a CAD administrator

When turned off, this system variable prevents a common vulnerability resulting from AutoLISP and other executable files that are automatically loaded from the Start In and drawing folders, which are set at the beginning of the session from the desktop shortcut icon or by double-clicking a file.

Value

Description

0

Ignores the Start In and drawing folders when searching for executable files.

1

Includes the Start In and drawing folders when searching for executable files. This option maintains legacy behavior, but is not recommended.

Note: This setting does not affect the manual loading of an executable file. You can still specify a full path to the Start In or the drawing folder, and the executable file will load.