Function Entry: DOSCOMMAND

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: DOSCOMMAND

Name

`doscommand`

Class

BricsCAD DOSLib Function

Syntax

(dos_command command [mode])

Arguments and Values

Arguments are described in the vendor page; see Source Notes.

Description

Runs the specified OS command (like when starting from a DOS box or terminal box. command :is a string specifying the OS command including all parameters mode :is an integer to control the behaviour of the OS shell box : 0 show the shell window in normal (last-used) mode 1 show the shell window in normal (last-used) mode, but is not activated 2 show the shell window in minimised, but inactive state 3 show the shell window in minimised, and active state 4 show the shell window in maximised state Returns the string executed in OS command shell, or NIL in case of an error. Examples : runs Notepad.exe with normal shell box runs Notepad.exe with minimised shell box runs control panel with normal shell box runs control panel with minimised shell box

Return Values

Vendor-defined; see Source Notes.

Availability

  • AutoCAD 2026: not documented.
  • BricsCAD V26: documented.
  • Status: BricsCAD-only.

Source Notes