End of process?

BlitzPlus Forums/BlitzPlus Programming/End of process?

Hi all

Is there a way to detect the end of a process?

This doesn't work...

stream = CreateProcess("blah blah")
Repeat
Delay(10)
Until Eof(stream)
Debuglog "process has finished!"


Can anyone see a way around this?

Thanx in advance :)

You have to ReadLine until Eof.

Why didn't i think of that. (red faced)

Thank you soja :)