hi I'm new to batch scripting when is use address of the of inside the for loop there is no problem but when is store that address in a variable and use that variable in a for /f loop for loop read the text of the variable not the file content
set file1="c:\a.txt"
FOR /F "tokens=* delims=" %%x in (%file1%) DO (
echo %%x
)