Previous Topic: Specify a User NameNext Topic: Display the Status of a Launched Application or Script


Launch an Application

The <launch-application> element lets you start a command or program.

<command> Element

The <command> element specifies the command or program to run. You can provide the path to the command or program in one of the following ways:

Environment variable

In a Solaris environment use the PATH variable. To create an environment variable on Windows, right-click My Computer, select Properties and Advanced, and click the Environment Variables button.

Absolute path

The path must be the same on each CA SOI client. Path statements on Windows should have a double backslash instead of a single backslash, for example:

C:\\Windows\\system32\\cmd.exe

The following syntax rules apply to the <command> element:

<validate> Element

The <validate> element verifies that the command or program exists on the client and has run permissions. If either of these conditions is not met during startup, the associated menu item is not added to the menu.

If the <validate> element is not used, the menu item is always added to the menu, but its state is determined by the value of other elements.

The <validate> element requires an absolute path in the <command> element, as shown in the following example:

<launch-application>
   command>c:\\windows\\system32\\notepad.exe</command>
   <validate/>
</launch-application>

Examples: Launch an Application

The following are two examples for launching an application: