What does the word ‘echo’ mean in batch file language?

Keith June 17, 2011
Pinterest Stumbleupon Whatsapp

What does the word ‘echo’ mean in batch file language?

  1. Jeffery Fabish
    June 17, 2011 at 8:50 pm

    echo just means to output to the screen.

    Think of it as you being in a hallway. If you talk, you'll hear an echo. That's just you talking. In batch, it's just the script talking.

    echo "hello world" would say "hello world".

  2. Snoodking
    June 17, 2011 at 6:27 pm

    echo is the function that outputs each line of the batch file into the command prompt as it is running.  

    The example would be if the batch command was "shutdown -r -t 0" (this command will restart your computer immediately) you would see that very thing in the command window, along with the folder path of where your prompt is currently running.  If you started your batch file with "(at symbol with no parentheses)echo off" the command would be invisible in the window, but would still run. It is on by default.

    If it is turned off, you can still use echo to output a line of text on the screen. "echo Have a nice day!" would output "Have a nice day!" in the command window.