By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

Batch Echo Command

Reference on the echo command, used in batch files to output small messages, Etc.

Created: 2012-02-25 17:49

The Batch Echo command is used to output smaller messages in batch files.

To hide a command output in batch files, you would use the at (@) sign.

Before you use echo, you may want to turn echo off, so that only the message it self is shown, without including the working path.

Batch Echo Example

The below is an example of a batch file showing the message "my first batch program", by the use of echo and pause.

echo off
echo my first batch program

Notice that it will say "echo off" at the top of your program? To get rid of that, use the at sign in front of the command!

@echo off
echo my first batch program

Use echo. to output an empty line.