TerminateProcess

Name

TerminateProcess

Syntax

TerminateProcess (String processName)

Purpose

To terminate a running process.

Description

Returns True if the function was able to terminate a running process of the given name. Otherwise, returns False.

Return Type

Boolean

Parameters

processName [String.String] – Name of the process to check.

Example

This object checks for processes in the Task Manager of your machine.

Therefore, in this example, we will be passing the required parameter to the function transformation object using a Variables object.

Where,

processName = Calculator

In the output, you can see that the Boolean value, True, has been returned. Hence, the specified process has been terminated successfully.

This termination is also evident in the Task Manger:

Last updated

© Copyright 2023, Astera Software