I have an exe file that I want to execute with a batch file.
Exe file is a third party console app that will prompt for input three times.
So I want to fill it in
Your config.exe
does not accept redirection at all. It requires real console buffers.
config.exe
using CreateProcessW\n
separated lines) or WriteConsoleInputW (if you need unicode characters)config.exe
termination and return exit codeAnother simpler option is ConEmu terminal (I'm the author). There is GuiMacro scripting which could be easily used from console. So you could just run from your prompt or wrap in in batch file (run in ConEmu):
ConEmuC.exe -GuiMacro print "\nsomeText\nsome Other Text\n" & config.exe remove