how to userinput without typing to a batch file

Posted by Blood hound on Stack Overflow See other posts from Stack Overflow or by Blood hound
Published on 2012-08-28T15:37:06Z Indexed on 2012/08/28 15:38 UTC
Read the original article Hit count: 268

Filed under:

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 no need to be passed without user intervention , any idea how to achieve it ?

cmd /c setup.bat

now if setup.bat is run " yes or no " need to be selected to get the desired result as now this setup.bat is called during automation, is there is anyway to pass "yes" parameter as an input to setup.bat

© Stack Overflow or respective owner

Related posts about batch-file