

InterviewSolution
Saved Bookmarks
1. |
Solve : can a *.bat answer prompted the questions automatically for a program?? |
Answer» <html><body><p>I'm trying to make a batch file that will answer prompted questions automatically for a program. I need to click "next" 4 times and click "enter". Quote from: DaveIsRacerX on September 17, 2010, 07:42:21 PM</p><blockquote>I'm trying to make a batch file that will answer prompted questions automatically for a program. I need to click "next" 4 times and click "enter". <br/></blockquote> Batch operates with a <a href="https://interviewquestions.tuteehub.com/tag/command-11508" style="font-weight:bold;" target="_blank" title="Click to know more about COMMAND">COMMAND</a> <a href="https://interviewquestions.tuteehub.com/tag/line-239358" style="font-weight:bold;" target="_blank" title="Click to know more about LINE">LINE</a> Interface. There is no way to click things with just batch. You will probably be able to <a href="https://interviewquestions.tuteehub.com/tag/accomplish-846960" style="font-weight:bold;" target="_blank" title="Click to know more about ACCOMPLISH">ACCOMPLISH</a> this with VBS, but not batch. Quote from: DaveIsRacerX on September 17, 2010, 07:42:21 PM<blockquote>I'm trying to make a batch file that will answer prompted questions automatically for a program. I need to click "next" 4 times and click "enter". <br/></blockquote> <br/>Clicking "next" and "enter" sounds like you're <a href="https://interviewquestions.tuteehub.com/tag/dealing-2566191" style="font-weight:bold;" target="_blank" title="Click to know more about DEALING">DEALING</a> with a GUI. Batch language barely knows Windows exists much less interacting with it. It is possible to create a response file for a command line program using redirection.<br/><br/>For a Windows program you can use VBScript and program the keys (no mouse movements) needed to accomplish the task. There is a discussion of this going on in this thread. Check it out.<br/><br/>Good luck.</body></html> | |