Batch file: Find if substring is in string (not in a file)

In a batch file, I have a string abcdefg. I want to check if bcd is in the string.

Unfortunately it seems all of the solutions I’m finding search a file for a substring, not a string for a substring.

Is there an easy solution for this?

12 Answers
12

Leave a Comment