1.

Solve : make a batch not respond to user input?

Answer»

i need a way to make it so that when the user types in a word that it will only respond to that word and NOTHING else.

example

SET /P input=:%=%

IF /I "%input%"=="yes" GOTO END

when i use this it works just fine but when i just push enter it just goes to the next SEGMENT of CODE in the batch.
make sense?If the STRING "%input%" equals "yes" then you goto the label :end, otherwise execution continues with the next line, so you have to put something in the next line to cope with that situation.



Discussion

No Comment Found