I have files:
y:\a.txt
y:\b.txt
I have x.bat:
@echo off
y:
cd \
for /f %%f in ('dir /b y:\*.txt') do (
set content=
set /p content=<y:\%%f
echo y:\%%f
echo content=%content%
)
and the result:
y:\a.txt
content=
y:\b.txt
content=
Why does not contain %content% variable the first lie of the text files? The files are not empty.