Alex Rivera | Logout

Creating a blank file from a batch file

Asked 2010-11-24T14:37:32.520
9

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?

Edit
Report

1 Answer

0

That's because echo. inserts a blank line in your file.

Try using the same code, but without the period appended to the end of the echo statement:

echo "Test string" > donald.txt
answered 2010-11-24T14:42:35.543

Your Answer