answersLogoWhite

0


Best Answer

Example 1 1. @echo off
2. set /p answer=Do you wish to continue? (Y/N):
3. pause
4. cls
Open Notepad and enter this in, then save it as "test.bat". Then open it and it will work like a charm.


Example 2 If your looking for something more of a challenge, and more advanced try this one. 1. @echo off
2. :start
3. cls
4. set /p answer=Do you wish to continue? (Y/N):
5.
6. if %answer% == Y goto G
7. if %answer% == y goto G
8. if %answer% == N goto H
9. if %answer% == n goto H
10.
11. :G
12. cls
13. echo Alright let's continue!
14. pause>nul
15. goto start
16.
17. :H
18. cls
19. echo Alright don't continue...
20. pause>nul
21. goto start
Open Notepad and enter this in, then save it as "test.bat". Then open it and it will work like a charm.


User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a yes no command in cmd?
Write your answer...
Submit
Still have questions?
magnify glass
imp