网站首页 网站地图

echo off

时间:2026-04-01 20:25:47

The command echo off is used in batch scripts to suppress the output of the commands that follow it. When you run a batch file, any commands that come after echo off will not be displayed in the output.

Example:

echo off
echo Hello, world!
echo This will not be shown.

Output:

Hello, world!
This will not be shown.

If you use echo off at the beginning of a script:

echo off
echo Hello, world!

Output:

Hello, world!

Note:

  • echo off is typically used in batch files to prevent the script from printing out the commands it executes.
  • It is not a valid command in PowerShell, but it is valid in Batch (BAT) files.

Let me know if you want to see how to use it in PowerShell or in a different context!