Forum Discussion
AlexeyK
Alumni
14 years agoPuyo,
Could you please clarify why Exists does not work for you?
>> Just want to know is there a function to wait for a process until it finished.
One possible way is to close the process with the process.Close(...) method and pass the needed timeout to it.
Another way is to use the WaitProperty method --
Set p = Sys.Process("MyApp")
p.Close
If p.WaitProperty("Exists", False, 5000) Then
Log.Message "The process was terminated."
Else
Log.Message "The process still exists."
End If