I turned off echo in bat file.
@echo off
then I do something like this
... echo %INSTALL_PATH% if exist %INSTALL_PATH%( echo 22
@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; )