Skip to content

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 } Comments

  1. Oliver Bowe | April 16, 2008 at 2:40 pm | Permalink

    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 | January 4, 2009 at 10:48 am | Permalink

    Thanks for the info, I served much :)

Post a Comment

Your email is never published nor shared. Required fields are marked *