;$var = ProcessExists(“notepad.exe”)
;Author = no17
$i = 0
Do
If ProcessExists(“ProcessName”) = True Then
ProcessWaitClose(“ProcessName”)
ElseIf ProcessExists(“ProcessName”) = False Then
ProcessClose(“ProcessName”) FileDelete(@TempDir)
$i = $i + 1
EndIf
Until $i = 1