I’m writing a batch file that launch an application.
app.exe
After the application is launched, I’m getting a list of options in the console, and the program waits for input, for example:
a: start session b: end session c: end
How do I make the batch type a?
Other than using
echoas @npclaudiu suggested, you could also write the expected input to a text file and then have the app read the file:This works if the app expects more than one line of input.