Process Termination Task Properties

The Process Termination Task Properties window is shown when you edit a Job Step that executes a Process Termination Task.

Property Pages

In addition to the standard response events, this task defines the following events:

Event Description
No processes found to terminate Occurs if no matching processes were running.
One or more proccess(es) could not be terminated Occurs if one or more instance of the process could not be terminated.
One or more process(es) terminated Occurs if one or more instance of the specified process was terminated.

Process Termination

Process to terminate

Specify the executable file name of the process that adTempus should terminate. You must specify the executable name (e.g., "notepad.exe"). If there is more than one program on the computer with the same executable file name, you may optionally include the full path of the version of the process that you want to monitor.

Note that this must be an executable (.exe). The task cannot target batch files (.bat, .cmd), scripts (.vbs, .js), etc.

If more than one instance of the process is running, all instances will be terminated.

New feature iconAlso terminate any child processes of the target process

Check this option to also terminate any processes that the target process has launched.

Job Variables

The Process Termination Task sets the following Job Variables, which can be used by subsequent operations in the job:

Variable Description
ProcessTermination.KilledProcessCount The number of processes matching the target process name that were successfully terminated.
ProcessTermination.FailedToKillProcessCount The number of processes matching the target process name that were not successfully terminated.
ProcessTermination.KilledChildProcessCount The number of processes terminated that were child processes of target processes.
ProcessTermination.FailedToKillChildProcessCount The number of processes not terminated that were child processes of target processes.
ProcessTermination.KilledChildProcesses Comma-separated list of the names of the child processes that were terminated.
ProcessTermination.FailedToKillChildProcesses Comma-separated list of the names of the child processes that could not be terminated.