shl.Initialize("shl", "gdal_merge.bat" , args)
shl.WorkingDirectory = "C:\OSGeo4W64\"
shl.Run(-1) ' .RunSynchronous(10000) 'set a timeout of 10 seconds
running = True
t.Enabled = True ' t is a Timer which i start after running the nonui app (in this case a batchfile)
End Sub
Sub Timer_Tick
If running Then
memo.Text = shl.GetTempOut ' show the active output in a textarea
End If
End Sub