Code: Select all
set str=Cha-cana-e2eeconfig-off-unsigned
for /f "tokens=1-5 delims=- " %%a in ("%str%") do set fla=%%a&set ca=%%b&set cfg=%%c&set e2ee=%%d&set sign=%%e
echo %fla%
echo %ca%
echo %cfg%
echo %e2ee%
echo %sign%
Cha
cana
e2eeconfig
unsigned
not echoing %%d, which is off
There must be something I do not know regarding on or off here?
I need know the substring either on or off from the above string...