Discussion Locked

Batch Files

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
is there a way within a batch file to automatically respond to [y/n] prompts so jobs can be run without operator input?

5 replies

by cryingdragon

Typically, if you have an executable file in
the batch, just put a /y behind it and that
will answer for you.

Mike

by beermonster

The /y switch can only be used if it is a recognised parameter of the command you want to run, some will accept /q for example. you can often get a list of parameters for shell commands by typing /? after the command in question. If you need to calla utility and there is no quiet switch you can try y | IE pipe y to the command, or

This discussion is closed to new replies.