How to create a blank line in a batch file.

Issue

How to create a blank line in a batch file.

Solution

To create a line add a period immediate after the echo command with no space as shown below.

echo.

An alternate solution could be to insert a blank character by typing ALT+255 in the batch file. Although this solution can work, we recommend using the above command since it works in all versions of MS-DOS and Windows.

Additional information

  • See the echo definition for further information and related links.