End of process?

BlitzPlus Forums/BlitzPlus Programming/End of process?

REDi(Posted 2004) [#1]
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 :)


soja(Posted 2004) [#2]
You have to ReadLine until Eof.


REDi(Posted 2004) [#3]
Why didn't i think of that. (red faced)

Thank you soja :)