If OpenConsole()
ConsoleTitle("Lets see")
ApplicationName.s = "cmd.exe /c ping google.com"
If WinExec_(@ApplicationName.s, #SW_SHOWNORMAL) = 0
MessageRequester("ERROR", Str(GetLastError_()) , #PB_MessageRequester_Ok)
EndIf
Repeat
Delay(20)
Until GetAsyncKeyState_(#VK_ESCAPE)
EndIf
End
Im trying to read the output but cant.
Yes, i know i can run it from runprogram. But the problem is that i found some commandline that dont let me catch the output by that way and im trying to see if i can do it by this way.
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Yes, i know i can run it from runprogram. But the problem is that i found some commandline that dont let me catch the output by that way and im trying to see if i can do it by this way.
*However, even for curiosity, how can i read it from my own console like the example i show?
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.