This is my first experience in batch script, i am trying to read text file content and trying to set its content in single variable i am using .bat file to run script but script not working.
i want to set all content of file in single variable.
tried most of example but failure.
below is my script which i am trying
cd "C:\documents and settings\%USERNAME%\desktop"
for /f "delims=" %%x in (Test.txt) do set Build=%%x
pause >nul
exit
This is my Text File
And
below result is showing