|
Answer» For EXAMPLE:
CODE: [Select]set var=value7
if "%var%"=="value*" (echo yes) ELSE (echo no) This will produce a 'no', seems the == is taken ABSOLUTELY with no support for WILDCARDS. Any ideas how to make this process work?
Thanks.do a string slice: i.e. check if the first 5 chars of the variable are equal to "value"
if "%variable:~0,5%"=="value" whatever
Surely, I should have thought of that. Thank You.
|