MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

FAQ.How to kill a process by name?

Answer: You can kill a process (or application) by name if you loop over all the processes and kill the one you need.
dim p as new ProcessMBS
p.GetfirstProcess ' get first
if p.name = "TextEdit" then
call p.KillProcess
end if
loop until not p.GetNextProcess
Notes: You may want to check the result of killProcess function. Not every user is allowed to kill every application.

MBS Real Studio Plugins