ECO
Este comando por lotes muestra mensajes o activa o desactiva el eco de comandos.
Sintaxis
ECHO “string”
Ejemplo
El siguiente ejemplo muestra las diferentes variantes del comando dir.
Rem Turns the echo on so that each command will be shown as executed
echo on
echo "Hello World"
Rem Turns the echo off so that each command will not be shown when executed
@echo off
echo "Hello World"
Rem Displays the contents of the PATH variable
echo %PATH%
Salida
La siguiente salida se mostrará en el símbolo del sistema.
C:\>Rem Turns the echo on so that each command will be shown as executed
C:\>echo on
C:\>echo "Hello World"
"Hello World"
C:\>Rem Turns the echo off so that each command will not be shown when executed
"Hello World"
C:\Users\ADMINI~1\AppData\Local\Temp