Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I want the user of my Batch File to type in a sentence, and if it contains a 'keyword' i want them to be directed to a section of the batch file.Thing is, I'm currently using:
if '%input%'=='keyword' goto keyword
and at the bottom i have (to be sure):
goto %input%Using this, the keyword has to be at the beginning of the sentence.
So, if the keyword is 'made', then i would work if the user typed 'made', but not if they typed 'who made you'.
Is there a way for the keyword to be anywhere in the sentence?

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |