Show/Hide Toolbars

Take Command / TCC Help v. 22

Navigation: TCC > Aliases & Batch Files > Batch Files

Echoing in Batch Files

Scroll Prev Top Next More

By default, each line in a batch file is displayed or "echoed" as it is executed. You can change this behavior, if you want, in several different ways:

 

OnestepAny batch file line that begins with an @ symbol will not be displayed.

 

OnestepThe display can be turned off and on within a batch file with the ECHO OFF and ECHO ON commands.

 

OnestepThe default setting can be changed with the SETDOS /V command, or the Default Batch Echo configuration option.

 

For example, the following line turns off echoing inside a batch file. The @ symbol keeps the batch file from displaying the ECHO OFF command itself:

 

@echo off

 

TCC also has a command line echo that is unrelated to the batch file echo setting. See ECHO for details about both settings.