I've never tried this before, but I have a dos program that returns data to the console periodically as it is running. I have created a small batch file to simulate its output:
Code: Select all
CLS
ECHO OFF
FOR /L %%A IN (1,1,10) DO (
TIMEOUT /T 5 >NUL
ECHO %%A
)
ECHO DONE
Obviously, my program's output is a little more complex, but this is the idea. Capture a periodic string of data from the console. What I want to do is to capture each line of data as it appears and then process it while I wait for the next one.
I don't want to output to a file if I can help it.
Can I repeatedly capture the new output in a variable with the RunProgram command or something else?
Thanks