variable character replace
Posted: 2022-Jun-26, 9:16 am
Need to test character presence in a string, but have no luck. What am I doing wrong?
Code: Select all
set string=abc
set char=a
call set "out=%%%string%:%char%=%%"
if %string%==%out% (echo Char %char% not present) else (echo Char %char% present)