How to use ECHO to output a blank line

I learnt something new today. You can use the DOS ‘ECHO’ command to output a line (or in fact any text you want) by putting a period ‘.’ immediately after the ECHO. i.e. The following will echo a blank line.

C:> ECHO.

Also, if you want to echo some special characters you can put a carat ‘^’ before them:

C:> ECHO ^>^>^>

>>>

C:> ECHO >>>

> was unexpected at this time.

Read the comments on the following post to get more juicy tips:

The Old New Thing : How do I force the ECHO command to echo?

2 Replies to “How to use ECHO to output a blank line”

Leave a Reply

Your email address will not be published. Required fields are marked *