This is how you return the first character, from the first line in a text file.
set count=1
for /f “delims=” %%a in (text.txt) do (
if !count!==1 set FChar=%%a
Set FChar=!FChar:~0,1!
set /a count+=1
)
echo %FChar%
Pause
Lab Core | The Lab of MrNetTek
A blog about IT, technical solutions, and code.