The above code can be saved as filename. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Automatically answer to input prompt in windows batch Ask Question.
Asked 5 years, 2 months ago. Active 2 years, 8 months ago. Viewed 67k times. Improve this question. Add a comment. Hi Guys, I am writing a batch file which runs a command prompt to delete the contents of a folder - the command line needs a confirmation Y or N after the line is run - how can I automate the answer to be Y via a batch file?
Bat file image attached. The program generates the batch file. Hi Guys, I am writing a batch file which runs a command prompt to delete the contents of a folder - the command line needs a confirmation Y or N after the line is run - how can I automate the answer to be Y via a batch file?
Thanks BenHyland. Best Answer. Ian Feb 16, at UTC. View this "Best Answer" in the replies below ». Popular Topics in General Windows. Theoretically it is possible for a script to issue keystrokes such as "Y". In practice the technique is useless because it is not possible to direct the keystroke reliably to a specific application or pop-up box. Office Office Exchange Server. Not an IT pro? Resources for IT Professionals. Sign in. United States English. Ask a question. Quick access.
0コメント