-
-
Save winstxnhdw/01d6fde108c17751dd3a8dd80f883631 to your computer and use it in GitHub Desktop.
Improved template for binary choices in batch files.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p choice=Do something? [y/N]: | |
if /i '%choice%'=='Y' goto yes | |
pause | |
exit | |
:yes | |
echo Do all of the yes things here! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment