I have used FOR /F to access the value in the file "last_bkp_date.txt" inside a batch file.
The result of %%a is okay, but i am unable to assign value to v_abc.
I have used set v_abc = before the for loop to especially delete / remove any past assignment done to this variable.
Can somebody help me on this?
@SETLOCAL EnableDelayedExpansion
@echo off
set v_abc =
FOR /F "tokens=1 usebackq" %%a IN (last_bkp_date.txt) DO (
set v_abc =%%a
echo value of a: %%a
echo value of abc: !v_abc!
)