I am trying to run a batch file which requires user input \"y/n\" to do further action. I want to call this batch file for automation, as during automation argument yes or n
I guess the simplest solution here is using the pipe with cmd
( | : Reads the output from one command and writes it to the input of another command. Also known as a pipe)
so for you its..
cmd /c echo Y | setup.bat
where Y will be your prompt input, the pressing of which you wish to automate