Code: Select all
echo :your text or variable; > your file
Read
Code: Select all
for /f "tokens=2 delims=:;" %%a in (your file) do (
set your variable name=%%a
)
and then echo %your variable name% to show it
It's important that the code has the : and ; or it will not work