OverviewExamples
terminate_status = System.TerminateProcess(3444);
Terminates the process whose process ID is 3444 and stores the result in the variable "terminate_status."
instances_of_file = 0;
file_to_check_for = "autorun.exe"; --have all lowercase
processes = System.EnumerateProcesses();
for j, file_path in pairs(processes) do
file = String.SplitPath(file_path);
if (String.Lower(file.Filename..file.Extension)) == file_to_check_for then
System.TerminateProcess(j);
end
end
Terminates all processes that were spawned by the executable "autorun.exe."
See also: Related Actions