Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9177

Send input to running program Batch

$
0
0

I would like to start a cmd line program in Batch and be able to communicate with it.

Currently I am starting the program with start /b cmd /c "cli_program.exe" > log.txt. I am currently redirecting the output to a log file so that I can grepfindstr the output.

Is there another way that I can get/send info to and from cli_program.exe? For example, is there a way to watch the output and if everything works, send an ENTER to proceed. or dynamically answer prompts coming from cli_program.exe (not predefine them in a text file and passing that at start?)?


Viewing all articles
Browse latest Browse all 9177

Trending Articles