Echo 按字面意思輸出所有內容
引號將按原樣輸出:
echo "Some Text"
"Some Text"
評論標記被忽略:
echo Hello World REM this is not a comment because it is being echoed!
Hello World REM this is not a comment because it is being echoed!
但是,echo
仍將輸出變數 - 請參閱變數用法 - 特殊字元仍然生效:
echo hello && echo world
hello world