Answer» Hello, I am writing a BATCH file which opens a python file which returns certain text cues. I would LIKE to have my batch file then (depending on the text returned) continue OPERATING or exit. How do I PROGRAM the batch file to search the cmd window for these text cues?You would basically need to write the output of the python program to a text file and then have the batch file PARSE the text file.Or use the FOR batch command to run the python script and capture the output line by line. Your use of "text cues" is not very informative. What exactly are you looking for?
|