Repository navigation
dos_shellexe
Dale Fugier edited this page Jul 1, 2026
·
1 revision
Opens or prints a specified file. The file can be an executable file or a document file.
(dos_shellexe file parameters [operation [show]])
file
A file to open or print or the folder to open or explore. The function can open an executable file or a document file. The function can print a document file.
parameters
The parameters to be passed to the application, like a document. If file specifies a document file, parameters should be nil.
operation
| Value | Description |
|---|---|
| 0 | Open the executable or document. |
| 1 | Print the document. |
| 2 | Explore the specified folder. |
show
How the newly opened window is to be shown. The default value is Normal (0).
| Value | Description |
|---|---|
| 0 | Normal. Activates and displays a window. If the window is minimized or maximized, the system restores it to its original size and position. An application should specify this flag when displaying the window for the first time. |
| 1 | Not Active. Displays a window in its most recent size and position. This value is similar option 0, except the window is not active. |
| 2 | Minimized. Activates the window and displays it as a minimized window. |
| 3 | Minimized Not Active. Displays the window as a minimized window. This value is similar to option 2, except the window is not activated. |
| 4 | Maximized. Activates the window and displays it as a maximized window. |
T if successful.
nil on error.
Command: (dos_shellexe "notepad.exe" "readme.txt")
T
(dos_shellexe "www.mcneel.com" nil)
T
(dos_shellexe "c:\\drawings\\" nil 2)
T