Have troubles while reading program console output.
When I run program in the command prompt I got this output:
If I run code like this
Code: Select all
Program = RunProgram ("sedutil-cli.exe", " --scan", "", #PB_Program_Hide|#PB_Program_Open|#PB_Program_Read)
Debug "Program is " + Program
String$ = ""
If Program
While ProgramRunning(Program)
If AvailableProgramOutput(Program)
String$ = String$ + ReadProgramString(Program) + Chr(13)
EndIf
Wend
String$ + "Exitcode: " + Str(ProgramExitCode(Program))
CloseProgram(Program) ; Close the connection to the program
Debug "Out is : " + String$
Two middle lines I do not get
What I do wrong ?
Thank you.