How to use ECHO Command

ECHO


Purpose:Displays messages, or turns command-echoing on or off.

Syntax:  ECHO [ON | OFF]
                  ECHO [message]

Prameters:

[ON | OFF]: Specifies whether to turn off or turn on the command-echoing feature.

message     : Specifies the text you want to display on the screen.


Example for ECHO OFF

@echo off
echo
echo This is my first Program
echo hello
echo

Example for ECHO ON:

C:\WINDOWS\system32>@echo on

C:\WINDOWS\system32>echo this is my first program
this is my first program

C:\WINDOWS\system32>echo hello
hello


Comments

Popular posts from this blog

How to use DIR Command

How to Write Your First Batch Script Progarm