(How) can a program with interactive command line mode (shell) be programmatically "interacted" with from CMD.exe via batch file (.bat)? Example:
>program.exe >>aCommand >>someResponse >>anotherCommand >>someotherResponse >>quit >
The batch file should start
aCommand, then [optionally] wait for
someResponse and so on.
There's How to interact with command-line program using batch file? but does not need automated interaction and so accepts
CALL as answer.
Maybe it's possible to start the process separately and then pipe commands and responses to communicate with it?