Navigation:  Object Model Reference > Builder Object >

RunProgramEx2 Method

Previous pageReturn to chapter overviewNext page

Runs an external application, with advanced options.  Any macros should be expanded before passing parameter values to the method.

 

Notes:

If the wait parameter is True, the exit code of the process will be stored in the RUNPROGRAM_EXITCODE temporary macro.
If the wait parameter is False, the process ID of the launched process will be stored in the RUNPROGRAM_PROCESSID temporary macro.

 

Syntax

 

builder.RunProgramEx2(ByVal command As String, ByVal startIn As String = "", , ByVal pwdCommand As String = "", ByVal useWaitProperty As Boolean = True, ByRef exitCode As Variant = Null, ByVal outputLoc As OutputLocEnum = vbldOutputStdout, ByVal outputFile As String = "", ByVal delOutFile As Boolean = False, ByVal window As Boolean = False, ByVal wait As Boolean = True, ByVal successCodes As String = "0", ByVal redirInput As RedirectInputEnum = vbldRedirectNone, ByVal redirInputVal As String = "", ByVal logOutput As Boolean = True, ByVal returnOutput As Boolean = False, ByRef output As Variant = Null) As StepStatusEnum

 

Arguments

 

pwdCommand

       Required.  The command for the program to run with any passwords obscured (if provided, this is the command that will be logged if the Log the command-line option on the Advanced tab is checked).

 

useWaitProperty

       Specifies whether the step's wait property (the Wait for completion option on the Advanced tab) will be used.

 

See Also

 

Applies to Builder object

See RunProgramEx for other parameters and additional details