@ECHO OFF if "1"=="1" ( SET TEST=C:\temp\txt.txt echo Test is: %TEST% )