Forum Discussion
m_essaid
10 years agoValued Contributor
hi,
here is the procedure I use to kill all instances of a program.
it's up to you to modify the "If not closedthen" line...
procedure KillProcessus(NomProcessus: string);
var
p, IsClosed;
begin
p := Sys.FindChild('ProcessName', NomProcessus);
while p.Exists do
begin
p.Close;
IsClosed:= p.WaitProperty('Exists', False);
if not IsClosed then
p.Terminate;
p:= Sys.FindChild('ProcessName', NomProcessus);
end;
end;
Related Content
- 3 years agoasikrahila0786
- 10 months agoShivani21
- 9 years agoPataj