Version 4.5.2
 —  Overview of Object Properties  —

Tasks

This document covers the following topics:


Procedure File Task

This type of task executes a file written in the Entire Connection procedure file language. As a rule, a procedure file has the extension ncp. For example:

test.ncp

Procedure File Task

Task name

The name can be up to 32 characters long and must not contain blanks. It can only be specified when adding a new task. Later, this text box cannot be modified.

Description

Enter up to 62 characters of descriptive text for a procedure file task. The description is displayed in the task list (i.e. the Select Task or Procedure dialog box of the terminal application).

Procedure name

Enter the name of the procedure file to be executed by this task. Entire Connection searches for the procedure file in the following order:

Parameter list

Enter the parameters to be passed to the procedure file at execution time. You may also use parameter substitution here. A maximum of 9 parameters is permitted. You can use the same parameters as for a DOS batch file.

Start in

Enter the name of the directory to which Entire Connection will change before executing the specified procedure file. Entire Connection will not change back to the original directory after the procedure file has been processed.

Prompt 1

Enter one line of text to be displayed to prompt for extra information when the task is executed. For example: "Enter name of file to be deleted".

Prompt 2

Enter one line of text - in addition to the text entered in the Prompt 1 text box. This text is displayed below the prompt 1 text in the same dialog box.

Top of page

Application Task

This type of task executes a DOS program or Windows application that has been specified by the user (e.g. Word or Excel). Such an application has the extension exe or com. For example:

Notepad.exe 

Application Task

Task name

The name can be up to 32 characters long and must not contain blanks. It can only be specified when adding a new task. Later, this text box cannot be modified.

Description

Enter up to 62 characters of descriptive text for an application task. The description is displayed in the task list (i.e. the Select Task or Procedure dialog box of the terminal application).

Program name

Enter the name of the program that is to be executed with this task. The program must have the extension exe or com. You can also choose the Browse button to select the program from a dialog box.

Parameter list

Enter the parameters to be passed to the program at execution time. You may also use parameter substitution here. A maximum of 9 parameters is permitted. You can use the same parameters as for a DOS batch file.

Start in

Enter the name of the directory to which Entire Connection will change before executing the specified program. Entire Connection will not change back to the original directory after the program has been processed.

Prompt 1

Enter one line of text to be displayed to prompt for extra information when the task is executed. For example: "Enter name of file to be deleted".

Prompt 2

Enter one line of text - in addition to the text entered in the Prompt 1 text box. This text is displayed below the prompt 1 text in the same dialog box.

Window State

Select one of the following option buttons:

Example of an Application Task

The following sample task invokes the Windows Notepad from a procedure file:

Example of an Application Task

Top of page

DOS Task

This type of task executes a DOS command (e.g. DIR or COPY) or DOS batch file (extension bat). For example:

DIR *.ncp 

DOS Task

Task name

The name can be up to 32 characters long and must not contain blanks. It can only be specified when adding a new task. Later, this text box cannot be modified.

Description

Enter up to 62 characters of descriptive text for a DOS task. The description is displayed in the task list (i.e. the Select Task or Procedure dialog box of the terminal application).

DOS command

Enter the DOS command to be executed by the DOS task. This can also be the name of a batch file. You can include task parameters.

Prompt 1

Enter one line of text to be displayed to prompt for extra information when the task is executed. For example: "Enter name of file to be deleted".

Prompt 2

Enter one line of text - in addition to the text entered in the Prompt 1 text box. This text is displayed below the prompt 1 text in the same dialog box.

Window State

Select one of the following option buttons:

Top of page

Software AG Task

Software AG tasks are supplied with Entire Connection and can only be seen by the administrator. The administrator can only modify the description of a Software AG task.

Software AG Task

Most Software AG tasks enable the administrator to restrict user rights using the group concept. For example, when the administrator disallows the task CmdLine for a group, the users defined for this group cannot use the command line (it appears dimmed). See the section User Groups for further information.

The following table lists all Software AG tasks:

Software AG Task Affects Restriction when this task is not allowed
CmdLine Terminal The command line is dimmed.

In the View > Toolbars menu, Command Line is dimmed.

color Terminal, Configuration Manager Terminal: in the Session menu, Color is dimmed. The corresponding toolbar button is also dimmed.

Configuration Manager: the object type Color Schemes is not shown in the tree structure.

ConfigManager Terminal In the Utilities menu, Configuration Manager is dimmed.
Debug Terminal In the Select Task or Procedure dialog box (task list) in the list of available procedure files, the Debug button is dimmed. Thus, the user cannot debug a procedure file.
font Terminal In the Session menu, Font is dimmed. The corresponding toolbar button is also dimmed.
keypad Terminal In the View > Keypad menu, all keypad names are dimmed.
menu Configuration Manager The object type Menus is not shown in the tree structure.
pkeys Terminal, Configuration Manager Terminal: in the Session menu, P-Key is dimmed.

Configuration Manager: the object type BS2000 P-Key Schemes is not shown in the tree structure.

SessionSetup Configuration Manager The object type Host Sessions is not shown in the tree structure.
task Configuration Manager The object type Tasks is not shown in the tree structure.
Tasklist Terminal In the Utilities menu, Task List is dimmed. The corresponding toolbar button is also dimmed.
te   Opens the default session. It can be used, for example, as a startup task. This task does not restrict user rights.
tekey Configuration Manager The object type Key Schemes is not shown in the tree structure.
ua Terminal In the Utilities menu, Unattended Workstation is dimmed.

This task can also be defined as a start parameter for Pccterminal.exe, if the unattended workstation is to be started automatically when the terminal application is started.

uid Configuration Manager The object type Users is not shown in the tree structure.

Top of page

Task Parameters

You can send a maximum of 9 parameters to an Entire Connection task. These parameters can be a mixture of the following:

Specific Parameters

A specific parameter specifies the actual data to be sent to the task. For example:

DIR *.ncp

In this example, *.ncp is a specific parameter. This DOS task lists all files with the extension ncp in the current directory.

Using parameter substitution, specific parameters can be overridden at execution time.

Substitutable Parameters

A substitutable parameter is replaced at execution time by the data entered in the command line or in a dialog box. These parameters are represented by a number from 1 through 9 preceded by a percent sign. For example:

DIR %1

In this example, you can specify a parameter value when invoking the DOS task. This value substitutes %1 at execution time.

Top of page

Parameter Substitution

Task parameters defined in procedure file, application or DOS tasks are substituted or overridden at execution time as follows:

The following examples are provided below:

Example 1: No Substitutable Parameters and No Prompt Text

A DOS task named PRINTME has the DOS command text box filled in as follows:

PRINT *.ncf *.ncd 

The following examples illustrate the various ways of executing this task.

Example 2: Substitutable Parameters and No Prompt Text

A task named PRINT4 has the DOS command text box filled in as follows:

PRINT %1 *.ncf %2 %3 

The following examples illustrate the various ways of executing this task.

Example 3: Prompt Text and No Substitutable Parameters

A task named PRINT2 has the DOS command text box and the Prompt 1 text box filled in as follows:

PRINT *.ncf *.ncd 
Modify the parameters or press ENTER. 

The following examples illustrate the various ways of executing this task.

Example 4: Prompt Text and Substitutable Parameters

A task named PRINT3 has the DOS command text box and the Prompt 1 text box filled in as follows:

PRINT %1 *.ncf %2
Enter the names of 2 files to be printed. 

The following examples illustrate the various ways of executing this task.

Top of page