Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Auto answer in a batch file
Name: Jim Date: October 19, 2000 at 06:56:11 Pacific
Comment:
I'm running a batch file in dos, and in certain situations, the program will prompt me to answer a question. Is there any way I can have the question default to answer Yes if this questions comes up?
Name: mr o Date: October 19, 2000 at 08:57:14 Pacific
Reply:
echo y |
will send the answer 'y' to the app
it also depends on the command, format contains hidden switches to turn off the question prompts.
0
Response Number 2
Name: Nightraven Date: October 20, 2000 at 02:58:22 Pacific
Reply:
By default, if you mean decide on Yes after a certain period of time, then you can use "choice/cyn t:Y,10", for example, to default to Yes after 10 seconds of no response from the user.
Summary: As basic as this should be, I don't know the maximum line length permissible in a batch file. On a command line I know its 127 characters, and I know it's longer in a batch file. Can you help? ...
Summary: guys, can u please tell me as how to specify a enter (presing enter key) in a batch file.am coding some debug ruotines in a batch file.one of the routines requires a enter at its end.i dont kn...