0

I want to run an application via batch file. it asks me to enter yes for 6 times. how I can do that in batch file.

1
  • 2
    Even in the most vivid of imaginations, the C tag on this question is ridiculous.
    – WhozCraig
    Mar 21, 2016 at 13:55

1 Answer 1

0

You can use this:

@echo off
(echo yes&echo yes&echo yes&echo yes&echo yes&echo yes) >temp
yourprogram.exe <temp & del temp

You must log in to answer this question.