MSI Factory 2.3

System.TerminateProcess

System.TerminateProcess

This is the first topic This is the last topic  

System.TerminateProcess

This is the first topic This is the last topic  

OverviewExamples

boolean System.TerminateProcess (

number ProcessID )

Example 1

terminate_status = System.TerminateProcess(3444);

Terminates the process whose process ID is 3444 and stores the result in the variable "terminate_status."

Example 2

instances_of_file = 0;

file_to_check_for = "dummy.exe"; --have all lowercase

processes = System.EnumerateProcesses();

 

for j, file_path in 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 "dummy.exe."

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us