Command: ExtProgram
- Updated2024-09-12
- 2 minute(s) read
Command: ExtProgram
Command: ExtProgram
Starts an external program.
Input Parameters
ExtProgramName |
Specifies the name of an external program including the path. |
ExtProgramArg |
Specifies the parameters that DIAdem uses to start an external program. |
[ExtProgramHide] |
Specifies whether DIAdem starts the external program with a visible window (FALSE) or not (TRUE). By default DIAdem displays the window. |
| Note If the ExtProgramName variable is empty and the ExtProgramArg variable contains a filename with the extension, DIAdem tries to start the application linked to this file. |
| Note DIAdem does not wait for the external program to execute. It continues the calling script. |
Example
The following example uses the cmd.exe program to execute a DOS command that deletes the Test.abc file from the c:\ folder.
| VBScript | Python |
Call ExtProgram("cmd.exe","/c del C:\test.abc", True)
The following example starts the program linked to the filename extension docx, which is usually Microsoft Word.
| VBScript | Python |
Call ExtProgram("","C:\test.docx")
Related Topics
Command: ColorChoose | Command: DeskSave | Command: DlgOpen | Command: ProgramExit | Command: StopWatchReset | Command: WinHelpCall | Command: WizardStart | Command: WndOpen | Command: WndShow | Variable: FullScreenMode

