set “test=/BH/TD/RB/RC/AB/”
for /f “delims=” %%a in (“/!Check!/”) do (

if “!test:%%a=!” neq “!test!” (
<Some Commands if found a
match>
) else (
<Other Commands>
)
)

Advertisements