Repository navigation
dos_cmdargs
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Retrieves the command-line arguments, or switches, used to launch AutoCAD. Command line switches are parameters that you add to the ACAD.EXE command line which enable AutoCAD to perform additional operations when it starts. For example, AutoCAD can start with an alternative configuration, run a script, load a template drawing and even open a drawing with a saved view. The standard AutoCAD switches are as follows:
| Switch |
|---|
| /b - Open a drawing and runs a Script. Drawing name is optional. Syntax: path ["drawing file"] /b "script" Example: "C:\Program Files\AutoCAD 2007\acad.exe" /b "C:\Scripts\MyScript" |
| /c - Specifies the hardware configuration file to use. Syntax: path /c "Configuration File" Example: "C:\Program Files\AutoCAD 2007\acad.exe" /c "C:\MyConfigs\MyConfig" |
| /nologo - Starts AutoCAD without the splash screen. Syntax: path /nologo Example: "C:\Program Files\AutoCAD 2007\acad.exe" /nologo |
| /p - Starts AutoCAD with the specified Profile name. If the Profile does not exist, AutoCAD uses the current Profile. Syntax: path /b profile Example: "C:\Program Files\AutoCAD 2007\acad.exe" /p "C:\Profiles\MyProfile" |
| /r - Resets all AutoCAD default settings, printers and system pointing device. Syntax: path /r Example: "C:\Program Files\AutoCAD 2007\acad.exe" /r |
| /s - Designates additional Support Paths. Syntax: path /s "Support Paths" Example: "C:\Program Files\AutoCAD 2007\acad.exe" /s "C:\Blocks;C:\Lisp;C:\VBA" |
| /t - Creates a new drawing based on a Template or Prototype drawing. Drawing name is optional. Syntax: path ["drawing file"] /t "Template File" Example: "C:\Program Files\AutoCAD 2007\acad.exe" /t "C:\MyTemplates\MyTemplate" |
| /v - Opens a drawing with a predefined view. Syntax: path ["drawing file"] /v "View Name" Example: "C:\Program Files\AutoCAD 2007\acad.exe" "MyDrawing" /v "MyView" |
(dos_cmdargs)
A list containing the command-line arguments if successful.
nil on error.
Command: (dos_cmdargs)
("C:\\Program Files\\AutoCAD 2007\\acad.exe" "/b" "C:\\Scripts\\MyScript")