Friday, 27 September 2013

Match a variable to part of another variable in batch

Match a variable to part of another variable in batch

I want to match a variable to part of the contents of another variable in
batch. Here is some pseudo code for what I want to do.
set h= Hello-World
set f= This is a Hello-World test
if %h% matches any string of text in %f% goto done
:done
echo it matched
Does anybody know how I could accomplish this?

No comments:

Post a Comment