@echo off
@setlocal
SET FILE=test.log
if exist %FILE% (
echo "EXIST"
)
if not exist %FILE% (
echo "NOT EXIST"