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:
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, as also evident in the Task Manager, the Calculator process is currently running.
Name
IsProcessRunning
Syntax
IsProcessRunning (String processName)
Purpose
To check whether a process is currently running.
Description
Returns True if a specified process is running. Otherwise, returns False.
Return Type
Boolean
Parameters
processName [String.String] – Name of the process to check.