WPProgram is the WPS class for all &link_progobjs; (see WPS classes for details). In addition to the settings strings recognized by the WPObject class, WPProgram recognizes the following strings:

ASSOCFILTER=filters

Sets filters for data files to be associated with a program object. Multiple filters are separated by commas.

Note: If &xwp;'s extended associations are enabled, the filter is stored in the INI files, but the change will have no effect until extended associations are disabled again because &xwp; completely ignores WPS associations by filter.

ASSOCTYPE=types

Sets types for data files to be associated with a program object. Multiple types are separated by commas.

EXENAME=filename

Sets the executable that the program object should point to. This must either be fully qualified (i.e. include the full path of the executable) or be an executable on the PATH, or executing the program will fail.

MAXIMIZED={YES|NO}

Determines whether the executable pointed to by this program object should be started maximized. This will normally have no effect on PM programs.

MINIMIZED={YES|NO}

Determines whether the executable pointed to by this program object should be started minimized. This will normally have no effect on PM programs.

PROGTYPE=type

Explicitly sets the session type of the executable pointed to by the program object. type must be one of the following:

NOAUTOCLOSE={YES|NO}

Determines whether the session should be left open when the program terminates. Note that this does not affect PM programs. The default is NO.

PARAMETERS=params

Sets the parameters to be given to the executable pointed to by the program object. This may contain the standard program object substitution macros.

SET variable=value

Sets an environment variable for the executable's session. Note that &os2; uses environment variables also to pass DOS settings to DOS and &winos2; sessions.

STARTUPDIR=path

Sets the working directory for the session to be started.