Forum Discussion
m_essaid
7 years agoValued Contributor
hi,
I have this little piece of script that waits for a process to be killed :
procedure KillProcess(ProcessName: string);
var
p, IsClosed;
begin
p := Sys.FindChild('ProcessName', ProcessName);
while p.Exists do
begin
p.Close;
IsClosed:= p.WaitProperty('Exists', False);
if not IsClosed then
p.Terminate;
p:= Sys.FindChild('ProcessName', ProcessName);
end;
end;
Related Content
Recent Discussions
- 3 hours agoSvetaG