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?
Feedback.

Answer: You can kill a process (or application) by name if you loop over all the processes and kill the one you need.
Example:
dim p as new ProcessMBS
p.GetfirstProcess ' get first
do
if p.name = "TextEdit" then
call p.KillProcess
Return
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.




Links
MBS Xojo PDF Plugins