I have the below batch script.
set /a low_release_num+=1
for /l %%a in (15,1,60) do (
findstr /n "^" rcf.log| find /i "%%a" >%tmp%.\$
for /f "tokens=2 delims=:" %%x in (%tmp%.\$) do set release=%%x
In the above script, I want to set second token of the string into the variable called release,when I echo the value of release,it is showing as echo off instead of the value.
if i check the same script in console (not in batch) the string is getting stored in the variable,but the same is not happening in batch mode.
Can any one help and explain why is this and how can i set the string in a variable??