I would like create a file from a batch file. I can use the echo. > donald.txt, but it creates it with an initial blank line. What else I can use to a file starting from the first line?
echo. > donald.txt
That's because echo. inserts a blank line in your file.
echo.
Try using the same code, but without the period appended to the end of the echo statement:
echo
echo "Test string" > donald.txt