Batch Files

Batch Files

Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Index | Next >

ECHO Example

Learning objective: (3) Demonstrate the use of the ECHO command


Click on image to enlarge.

In this batch file example, note the "@" (at) symbol before the ECHO OFF command at the top of the screen. The user will not see the execution of the ECHO OFF command on the screen. Note the use of the ECHO to send a message to the screen and ECHO period to add a blank line. Also note the use of white space to add readability to the batch file.

When this batch file is executed, note the ECHO text at the top of the screen.

Text top of screen

The CLS cleared the screen so the results of the batch file started at the top of a clean screen.

Results of DIR

Note that the results of the DIR command.

Sections: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | Index | Next >