Skip to main content

1E 23.11 (SaaS)

OperatingSystem.KillProcesses

Method

KillProcesses

Module

OperatingSystem

Library

Core

Action

Terminate a running process (or set of process instances of the same executable).

Parameters

Executable (string): The filename of the executable to kill.

For Windows, this is the basename (e.g. "notepad.exe").

For Linux it can be the basename (e.g. "firefox") or the full path (e.g. "/usr/lib64/firefox/firefox").

Return values

Killed (int): The number of processes successfully killed.

Failed (int): The number of processes that could not be killed.

Example

OperatingSystem.KillProcesses(Executable:"notepad.exe");
OperatingSystem.KillProcesses(Executable:"/usr/lib64/firefox/firefox");

Platforms

  • Windows

  • Linux

Notes