Answer yes to question in Batch File
Posted on 2006-11-15
I'm trying to write a batch file to stop a software package for backups.
I can stop the actual service using "net stop", but the software company recommends to use their stop command. The problem is it asks "do you want to stop the product", but I can't figure out in a .bat file how to make this happen.
The vendor says to use their stop_program.exe because it stops the different services in order and they have a startup.exe file also.
Is there a way to do this in a .bat file, or a utility out there than can do this?
I found one article that said to use "echo y | stopcommand.exe" but that does not work.