- 1 year ago
Turn on echo for a single command in a batch file
Comment
1 / 1
To turn on echo for a single command in a batch file, you can use the @
symbol before the command. The @
symbol suppresses the echoing of the command itself, but it allows the command's output to be displayed.
Here's an example:
less@echo off
echo This line will not be echoed
@echo This line will be echoed
In the above example, the first echo
command is executed without echoing the command itself, while the second echo
command is executed with echo enabled.