2
Q:

how to make yes no question in bat scrip script

@echo off

echo Are you a programmer?

choice
IF ERRORLEVEL 2 goto No
IF ERRORLEVEL 1 GOTO Yes

:Yes
echo You are a programmer! :)

timeout 5
exit

:No
echo you are not a programmer! :(

timeout 5
exit
0

Tags

New to Communities?

Join the community