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
- 14 years ago
- 12 years ago
- 8 years ago
Recent Discussions
- 3 days ago
- 3 days ago
- 6 days ago