此批处理命令显示消息,或打开或关闭命令回显。
ECHO “string”
以下示例显示了dir命令的不同变体。
链接:https://www.learnfk.comhttps://www.learnfk.com/batch-script/batch-script-echo.html
来源:LearnFk无涯教程网
Rem Turns the echo on so that each command will be shown as executed echo on echo "Hello World" Rem Turns the echo off so that each command will not be shown when executed @echo off echo "Hello World" Rem Displays the contents of the PATH variable echo %PATH%
以下输出将显示在命令提示符下。
C:\>Rem Turns the echo on so that each command will be shown as executed C:\>echo on C:\>echo "Hello World" "Hello World" C:\>Rem Turns the echo off so that each command will not be shown when executed "Hello World" C:\Users\ADMINI~1\AppData\Local\Temp
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)
Spring Boot与Kubernetes云原生微服务实践 -〔杨波〕