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?

This entry was posted in Photos and tagged , , . Bookmark the permalink.

2 Responses to How to use ECHO to output a blank line

  1. Oliver Bowe says:

    I knew that but then I am ancient. But the site you linked to had stuff on it that I wished I’d know years ago.

  2. Angel says:

    Thanks for the info, I served much :)

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>