How does the echo command works in batch programming

The ECHO command in Windows CMD is used to print out text to the screen, display the actual setting of the Command-line which means when you do:

@echo off

The “C:\Users[User]” line before your command input will disappear. You can restore it with:

@echo on

Here all functions of ECHO explained:

  • @echo [on/off] (to set the command-line settings)
  • echo [text] (to print text to the screen)
  • echo. (to print an empty line to the screen)
  • echo (displays the current setting of the command-line)
  • echo /? (displays help for the command ECHO)

I hope I was able to help you.

Leave a Comment