Solved using a batch file to answer command questions

October 23, 2012 at 05:58:53
Specs: Windows 7, Pentium D CPU 3.4GHz
When we get new computers on out domain, it helps if we run gpupdate /force a few times. I have a batch file that runs that command 3 times. However, each time I do that, I need to answer "do you want to logout?" How can I run GPUPDATE /FORCE then input the answer N then run GPUPDATE /FORCE a second time without me needing to touch it?

See More: using a batch file to answer command questions

Report •

#1
October 23, 2012 at 06:30:16
✔ Best Answer
Use:
echo N| xxxcommand


Report •

#2
October 23, 2012 at 08:39:31
Thank you, it's working

Report •
Related Solutions


Ask Question