freeprocess

BlitzMax Forums/BlitzMax Programming/freeprocess

Try this:
process:TProcess = CreateProcess("tracert blitzforum.de")

handle:TPipeStream = process.pipe


DebugLog handle.ReadAvail()
DebugLog handle.ReadLine()
While process
   If handle.ReadAvail()
    Local Line:String = handle.ReadLine()
    If Line <> "" Then Print Line
   EndIf
Wend 


If you're using MaxGui and you are trying to read the output, then you have to call PollSystem() within the 'while process' loop.