Search found 2 matches
- 20 Mar 2014 10:50
- Forum: DOS Batch Forum
- Topic: Testing on input
- Replies: 13
- Views: 12000
Re: Testing on input
I'm using 7 I only got like: :nospace SET /P ANSWER=Do you want to clean your mw2 folder?(Y/N) IF NOT DEFINED ANSWER GOTO :nospace echo You chose: %ANSWER% if /i {%ANSWER%}=={y} (goto :yes) if /i {%ANSWER%}=={yes} (goto :yes) goto :no exit /b 0 But it crashes when space then enter OR on any other le...
- 19 Mar 2014 14:40
- Forum: DOS Batch Forum
- Topic: Testing on input
- Replies: 13
- Views: 12000
Testing on input
I want to make input to check only on Y/Yes or N/No not on spaces abcdef etc. How can I do that?
Thank you.
Thank you.