Computing.Net > Forums > Disk Operating System > Auto answer in a batch file

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

Reply to Message Icon

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?

Thanks for any help
Jim



Sponsored Link
Ads by Google

Response Number 1
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Auto answer in a batch file

Max Line Length in a batch file www.computing.net/answers/dos/max-line-length-in-a-batch-file/9738.html

want specify enter in a batch file www.computing.net/answers/dos/want-specify-enter-in-a-batch-file/14558.html

length of a string in a batch file www.computing.net/answers/dos/length-of-a-string-in-a-batch-file/13650.html