Echo off but messages are displayed

后端 未结 5 1818
梦谈多话
梦谈多话 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:26

    @echo off
    // quote the path or else it won't work if there are spaces in the path
    SET INSTALL_PATH="c:\\etc etc\\test";
    if exist %INSTALL_PATH% (
       //
       echo 222;
    )
    

提交回复
热议问题