So I'm making, like, a fake messenger thing in batch to mess with people and I want to make it seem more realistic. Basically, I need to be able to search a variable to see if it contains a word? if that makes sense. Everyone that I've asked has said to use the findstr function, but I can't really do that because it's not a separate text file.
I was wondering if there was a way to do, like,
set /p input=thing (a variable for user input)
if %thing% contains "o" echo yes
I don't know if that makes sense. Sorry. I'm a beginner.
Thank you so much for reading this. I've been looking at stuff for this for like 3 hours
