Code: Select all
console.l = RunProgram("cmd","","",#PB_Program_Open|#PB_Program_Read|#PB_Program_Write)
Repeat
If AvailableProgramOutput(console)
Debug ReadProgramString(console)
EndIf
Debug "running"
Delay(500)
ForEver
Why does this (after a short output) stop until the cmd.exe is closed mannually? Is there a way (without threads) to prevent this problem?
I hope someone of you can help me!
Greetz