"Run" Action

 

Description

With this type of action, you can run a program. You can specify which program is to be executed, along with the working directory, parameters etc.

Parameters

The following is a list of the supported parameters:
FileNameREQVAR

Value

String

Description

Specifies the name of the file to be executed. The file has to be an executable; if you want to open a document, use the shellexecute action instead.

Example

FileName: "%Windows%\Notepad.exe"
ParametersVAR

Value

String

Description

If you want to pass command-line parameters to the program, you can put them here.

Example

Parameters: "%AeTrayMenuPath%\AeTrayMenu.ini"
WorkingDirVAR

Value

String

Description

With this parameter, you can control the directory in which the program is executed. Some programs look for files in the 'current' directory, so in that case this setting will be useful.

Example

WorkingDir: "%Windows%"
ShowCmd

Value

normal|hidden|maximized|minimized

Description

Most programs open a window on the screen when executed; with this setting, you can control how (and if) that window will be shown.

Example

ShowCmd: maximized
Flags

Value

Flag list

Description

This parameter is a set of extra options. Multiple options may be used by separating them by spaces. The following options are supported:
ignoreerrors
Normally, AeTrayMenu pops up a message box when the action cannot be performed for some reason (e.g. when it can't find the program). Specify this flag to suppress these error messages.
waituntilterminated
If you're executing multiple actions sequentially (in a batch action section), you can use this flag to suspend execution of the next action until the program has been terminated.
waituntilidle
This flag works like the waituntilterminated flag, but instead waits until the program is waiting for user input with no input pending.

Example

Flags: ignoreerrors waituntilterminated

Example

Action: run; FileName: "%Windows%\Notepad.exe"; Parameters: "%AeTrayMenuPath%\AeTrayMenu.ini"; ShowCmd: maximized; Flags: waituntilterminated

See also See Also
List of Available Actions
"ShellExecute" Action