Echo off but messages are displayed

后端 未结 5 1824
梦谈多话
梦谈多话 2021-01-30 15:40

I turned off echo in bat file.

@echo off

then I do something like this

...
echo %INSTALL_PATH%
if exist %INSTALL_PATH%(
echo 22         


        
5条回答
  •  逝去的感伤
    2021-01-30 16:23

    For me this issue was caused by the file encoding format being wrong. I used another editor and it was saved as UTF-8-BOM so the very first line I had was @echo off but there was a hidden character in the front of it.

    So I changed the encoding to plain old ANSI text, and then the issue went away.

提交回复
热议问题